$OrderAddress.fromJson constructor

$OrderAddress.fromJson(
  1. Map json_
)

Implementation

$OrderAddress.fromJson(core.Map json_)
    : this(
        country: json_.containsKey('country')
            ? json_['country'] as core.String
            : null,
        fullAddress: json_.containsKey('fullAddress')
            ? (json_['fullAddress'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        isPostOfficeBox: json_.containsKey('isPostOfficeBox')
            ? json_['isPostOfficeBox'] as core.bool
            : null,
        locality: json_.containsKey('locality')
            ? json_['locality'] as core.String
            : null,
        postalCode: json_.containsKey('postalCode')
            ? json_['postalCode'] as core.String
            : null,
        recipientName: json_.containsKey('recipientName')
            ? json_['recipientName'] as core.String
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        streetAddress: json_.containsKey('streetAddress')
            ? (json_['streetAddress'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );