from __future__ import annotations

from export.factories import IDExportDocumentFactory
from export.models import IDExportDocument


class IDExportParser:
    """Parses a validated idconvert_export.json dict into an IDExportDocument."""

    def parse(self, data: dict) -> IDExportDocument:
        """Build the full domain model from the validated JSON dict."""
        return IDExportDocumentFactory.from_dict(data)
