Feature.fromMap constructor

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

Implementation

factory Feature.fromMap(Map<String, dynamic> json) => Feature(
      bbox: json["bbox"] == null
          ? []
          : List<num>.from(json["bbox"]!.map((x) => x)),
      type: json["type"],
      properties: json["properties"] == null
          ? null
          : Properties.fromMap(json["properties"]),
      geometry: json["geometry"] == null
          ? null
          : Geometry.fromMap(json["geometry"]),
    );