mapFromJson static method
Implementation
static Map<String, ExternalServicePatchAddress> mapFromJson(
Map<String, dynamic>? json) {
if (json == null) {
return <String, ExternalServicePatchAddress>{};
}
return json.entries.fold(<String, ExternalServicePatchAddress>{},
(Map<String, ExternalServicePatchAddress> previousValue, element) {
final ExternalServicePatchAddress? object =
ExternalServicePatchAddress.fromJson(element.value);
if (object is ExternalServicePatchAddress) {
previousValue[element.key] = object;
}
return previousValue;
});
}