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