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