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