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