$PostalAddress.fromJson constructor
$PostalAddress.fromJson(
- Map json_
Implementation
$PostalAddress.fromJson(core.Map json_)
: this(
addressLines: json_.containsKey('addressLines')
? (json_['addressLines'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
administrativeArea: json_.containsKey('administrativeArea')
? json_['administrativeArea'] as core.String
: null,
languageCode: json_.containsKey('languageCode')
? json_['languageCode'] as core.String
: null,
locality: json_.containsKey('locality')
? json_['locality'] as core.String
: null,
organization: json_.containsKey('organization')
? json_['organization'] as core.String
: null,
postalCode: json_.containsKey('postalCode')
? json_['postalCode'] as core.String
: null,
recipients: json_.containsKey('recipients')
? (json_['recipients'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
regionCode: json_.containsKey('regionCode')
? json_['regionCode'] as core.String
: null,
revision: json_.containsKey('revision')
? json_['revision'] as core.int
: null,
sortingCode: json_.containsKey('sortingCode')
? json_['sortingCode'] as core.String
: null,
sublocality: json_.containsKey('sublocality')
? json_['sublocality'] as core.String
: null,
);