ListLocationsResponse.fromJson constructor

ListLocationsResponse.fromJson(
  1. Map _json
)

Implementation

ListLocationsResponse.fromJson(core.Map _json)
    : this(
        locations: _json.containsKey('locations')
            ? (_json['locations'] as core.List)
                .map<Location>((value) => Location.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        nextPageToken: _json.containsKey('nextPageToken')
            ? _json['nextPageToken'] as core.String
            : null,
      );