GoogleCloudRecommendationengineV1beta1PredictRequest.fromJson constructor
GoogleCloudRecommendationengineV1beta1PredictRequest.fromJson(
- Map _json
Implementation
GoogleCloudRecommendationengineV1beta1PredictRequest.fromJson(core.Map _json)
: this(
dryRun:
_json.containsKey('dryRun') ? _json['dryRun'] as core.bool : null,
filter: _json.containsKey('filter')
? _json['filter'] as core.String
: null,
labels: _json.containsKey('labels')
? (_json['labels'] as core.Map<core.String, core.dynamic>).map(
(key, item) => core.MapEntry(
key,
item as core.String,
),
)
: null,
pageSize: _json.containsKey('pageSize')
? _json['pageSize'] as core.int
: null,
pageToken: _json.containsKey('pageToken')
? _json['pageToken'] as core.String
: null,
params: _json.containsKey('params')
? _json['params'] as core.Map<core.String, core.dynamic>
: null,
userEvent: _json.containsKey('userEvent')
? GoogleCloudRecommendationengineV1beta1UserEvent.fromJson(
_json['userEvent'] as core.Map<core.String, core.dynamic>)
: null,
);