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