# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .id_card import IdCard


class RecognizeIdCardResponseBody(object):
    _types = {
        "id_card": IdCard,
    }

    def __init__(self, d=None):
        self.id_card: Optional[IdCard] = None
        init(self, d, self._types)

    @staticmethod
    def builder() -> "RecognizeIdCardResponseBodyBuilder":
        return RecognizeIdCardResponseBodyBuilder()


class RecognizeIdCardResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._recognize_id_card_response_body = RecognizeIdCardResponseBody()

    def id_card(self, id_card: IdCard) -> "RecognizeIdCardResponseBodyBuilder":
        self._recognize_id_card_response_body.id_card = id_card
        return self

    def build(self) -> "RecognizeIdCardResponseBody":
        return self._recognize_id_card_response_body
