mapListFromJson static method
Implementation
static Map<String, List<NewServiceModel?>?> mapListFromJson(
dynamic json, {
bool? emptyIsNull,
bool? growable,
}) {
final Map<String, List<NewServiceModel?>?> map =
<String, List<NewServiceModel>?>{};
if (json is Map && json.isNotEmpty) {
json.cast<String, dynamic>().forEach((key, dynamic value) {
map[key] = NewServiceModel.listFromJson(
value,
emptyIsNull: emptyIsNull,
growable: growable,
);
});
}
return map;
}