mapListFromJson static method

Map<String, List<Device>> mapListFromJson(
  1. Map<String, dynamic>? json
)

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));
  });
}