AddressInfo.fromJson constructor
Deserializes a JSON-compatible map to create an instance.
Used internally, not intended for direct use by consumers. The expected map structure may change without notice.
Implementation
factory AddressInfo.fromJson(final Map<String, String> json) {
final AddressInfo retVal = AddressInfo._create();
for (final MapEntry<String, String> entry in json.entries) {
final String key = entry.key;
final String value = entry.value;
final AddressField field = AddressFieldExtension.fromString(key);
retVal.setField(value, field);
}
return retVal;
}