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