Feature.fromJson constructor

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

Implementation

factory Feature.fromJson(Map<String, dynamic> json) {
  final feature = turf.Feature.fromJson(json);
  return Feature(
      bbox: feature.bbox,
      id: feature.id,
      properties: feature.properties,
      geometry: feature.geometry,
      fields: feature.fields);
}