PlacesResponse.fromJson constructor

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

Implementation

factory PlacesResponse.fromJson(Map<String, dynamic> json) => PlacesResponse(
      type: json["type"],
      // query: List<String>.from(json["query"].map((x) => x)),
      features: List<Feature>.from(
          json["features"].map((x) => Feature.fromJson(x))),
      attribution: json["attribution"],
    );