CustomerPostalAddress.fromJson constructor

CustomerPostalAddress.fromJson(
  1. Map json_
)

Implementation

CustomerPostalAddress.fromJson(core.Map json_)
    : this(
        addressLine1: json_.containsKey('addressLine1')
            ? json_['addressLine1'] as core.String
            : null,
        addressLine2: json_.containsKey('addressLine2')
            ? json_['addressLine2'] as core.String
            : null,
        addressLine3: json_.containsKey('addressLine3')
            ? json_['addressLine3'] as core.String
            : null,
        contactName: json_.containsKey('contactName')
            ? json_['contactName'] as core.String
            : null,
        countryCode: json_.containsKey('countryCode')
            ? json_['countryCode'] as core.String
            : null,
        locality: json_.containsKey('locality')
            ? json_['locality'] as core.String
            : null,
        organizationName: json_.containsKey('organizationName')
            ? json_['organizationName'] as core.String
            : null,
        postalCode: json_.containsKey('postalCode')
            ? json_['postalCode'] as core.String
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
      );