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