mapFromJson static method

Map<String, RegionPoint> mapFromJson(
  1. Map<String, Map<String, dynamic>> json
)

Implementation

static Map<String, RegionPoint> mapFromJson(
    Map<String, Map<String, dynamic>> json) {
  final map = Map<String, RegionPoint>();
  if (json.isNotEmpty) {
    json.forEach((String key, Map<String, dynamic> value) =>
        map[key] = RegionPoint.fromJson(value));
  }
  return map;
}