GoogleCloudLocationListLocationsResponse.fromJson constructor

GoogleCloudLocationListLocationsResponse.fromJson(
  1. Map _json
)

Implementation

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