GeoJsonFeature.fromJson constructor

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

Implementation

GeoJsonFeature.fromJson(Map<String, dynamic> json)
    : type = json['type'],
      properties = json['properties'],
      geometry = GeoJsonFeatureGeometry.fromJson(json['geometry']),
      bbox = json['bbox'] == null
          ? null
          : <ORSCoordinate>[
              ORSCoordinate(
                longitude: json['bbox'][0],
                latitude: json['bbox'][1],
              ),
              ORSCoordinate(
                longitude: json['bbox'][2],
                latitude: json['bbox'][3],
              ),
            ];