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