GeoJsonFeatureProperties.fromJson constructor

GeoJsonFeatureProperties.fromJson(
  1. Map<String, dynamic> json
)

Implementation

GeoJsonFeatureProperties.fromJson(Map<String, dynamic> json)
    : groupIndex = json['group_index'],
      value = json['value'],
      center = json['center'] == null
          ? null
          : Coordinate.fromList(json['center'] as List<dynamic>),
      osmId = json['osm_id'],
      osmType = json['osm_type'],
      distance = json['distance'],
      categoryIds = json['category_ids'],
      osmTags = json['osm_tags'];