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,
      );