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