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