Customer.fromJson constructor

Customer.fromJson(
  1. Map json_
)

Implementation

Customer.fromJson(core.Map json_)
    : this(
        alternateEmail: json_.containsKey('alternateEmail')
            ? json_['alternateEmail'] as core.String
            : null,
        customerDomain: json_.containsKey('customerDomain')
            ? json_['customerDomain'] as core.String
            : null,
        customerDomainVerified: json_.containsKey('customerDomainVerified')
            ? json_['customerDomainVerified'] as core.bool
            : null,
        customerId: json_.containsKey('customerId')
            ? json_['customerId'] as core.String
            : null,
        customerType: json_.containsKey('customerType')
            ? json_['customerType'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        phoneNumber: json_.containsKey('phoneNumber')
            ? json_['phoneNumber'] as core.String
            : null,
        postalAddress: json_.containsKey('postalAddress')
            ? Address.fromJson(
                json_['postalAddress'] as core.Map<core.String, core.dynamic>)
            : null,
        primaryAdmin: json_.containsKey('primaryAdmin')
            ? PrimaryAdmin.fromJson(
                json_['primaryAdmin'] as core.Map<core.String, core.dynamic>)
            : null,
        resourceUiUrl: json_.containsKey('resourceUiUrl')
            ? json_['resourceUiUrl'] as core.String
            : null,
      );