mapListFromJson static method
Implementation
static Map<String, List<Device>> mapListFromJson(Map<String, dynamic>? json) {
if (json == null) {
return <String, List<Device>>{};
}
return json.map((key, value) {
return MapEntry<String, List<Device>>(key, Device.listFromJson(value));
});
}