GoogleCloudRecommendationengineV1beta1PredictResponse.fromJson constructor

GoogleCloudRecommendationengineV1beta1PredictResponse.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRecommendationengineV1beta1PredictResponse.fromJson(core.Map json_)
    : this(
        dryRun:
            json_.containsKey('dryRun') ? json_['dryRun'] as core.bool : null,
        itemsMissingInCatalog: json_.containsKey('itemsMissingInCatalog')
            ? (json_['itemsMissingInCatalog'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        metadata: json_.containsKey('metadata')
            ? json_['metadata'] as core.Map<core.String, core.dynamic>
            : null,
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
        recommendationToken: json_.containsKey('recommendationToken')
            ? json_['recommendationToken'] as core.String
            : null,
        results: json_.containsKey('results')
            ? (json_['results'] as core.List)
                .map((value) =>
                    GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );