ListLocationsResponse.fromJson constructor

ListLocationsResponse.fromJson(
  1. Map _json
)

Implementation

ListLocationsResponse.fromJson(core.Map _json) {
  if (_json.containsKey("locations")) {
    locations = (_json["locations"] as core.List)
        .map<Location>((value) => new Location.fromJson(value))
        .toList();
  }
  if (_json.containsKey("nextPageToken")) {
    nextPageToken = _json["nextPageToken"];
  }
}