GoogleMapsPlacesV1SearchTextResponse.fromJson constructor

GoogleMapsPlacesV1SearchTextResponse.fromJson(
  1. Map json_
)

Implementation

GoogleMapsPlacesV1SearchTextResponse.fromJson(core.Map json_)
    : this(
        contextualContents: json_.containsKey('contextualContents')
            ? (json_['contextualContents'] as core.List)
                .map((value) => GoogleMapsPlacesV1ContextualContent.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
        places: json_.containsKey('places')
            ? (json_['places'] as core.List)
                .map((value) => GoogleMapsPlacesV1Place.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );