OrderCustomer.fromJson constructor

OrderCustomer.fromJson(
  1. Map json_
)

Implementation

OrderCustomer.fromJson(core.Map json_)
    : this(
        fullName: json_.containsKey('fullName')
            ? json_['fullName'] as core.String
            : null,
        invoiceReceivingEmail: json_.containsKey('invoiceReceivingEmail')
            ? json_['invoiceReceivingEmail'] as core.String
            : null,
        loyaltyInfo: json_.containsKey('loyaltyInfo')
            ? OrderCustomerLoyaltyInfo.fromJson(
                json_['loyaltyInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        marketingRightsInfo: json_.containsKey('marketingRightsInfo')
            ? OrderCustomerMarketingRightsInfo.fromJson(
                json_['marketingRightsInfo']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );