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