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