# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init
from .account import Account


class GetAccountAssetsReferralAccountResponseBody(object):
    _types = {
        "account": Account,
    }

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

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


class GetAccountAssetsReferralAccountResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._get_account_assets_referral_account_response_body = GetAccountAssetsReferralAccountResponseBody()

    def account(self, account: Account) -> "GetAccountAssetsReferralAccountResponseBodyBuilder":
        self._get_account_assets_referral_account_response_body.account = account
        return self

    def build(self) -> "GetAccountAssetsReferralAccountResponseBody":
        return self._get_account_assets_referral_account_response_body
