Address.fromJson constructor

Address.fromJson(
  1. Map json_
)

Implementation

Address.fromJson(core.Map json_)
    : this(
        city: json_.containsKey('city') ? json_['city'] as core.String : null,
        country: json_.containsKey('country')
            ? json_['country'] as core.String
            : null,
        countryCode: json_.containsKey('countryCode')
            ? json_['countryCode'] as core.String
            : null,
        extendedAddress: json_.containsKey('extendedAddress')
            ? json_['extendedAddress'] as core.String
            : null,
        formattedType: json_.containsKey('formattedType')
            ? json_['formattedType'] as core.String
            : null,
        formattedValue: json_.containsKey('formattedValue')
            ? json_['formattedValue'] as core.String
            : null,
        metadata: json_.containsKey('metadata')
            ? FieldMetadata.fromJson(
                json_['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        poBox:
            json_.containsKey('poBox') ? json_['poBox'] as core.String : null,
        postalCode: json_.containsKey('postalCode')
            ? json_['postalCode'] as core.String
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        streetAddress: json_.containsKey('streetAddress')
            ? json_['streetAddress'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );