from __future__ import annotations
from dataclasses import dataclass
from typing import Any, Dict


@dataclass
class EvidenceMetadata:
    container_name: str
    blob_uri: str

    @classmethod
    def from_api(cls, data: Dict[str, Any]) -> EvidenceMetadata:
        return cls(
            container_name=data["containerName"],
            blob_uri=data["blobUri"],
        )
