GoogleCloudRetailV2PredictRequest.fromJson constructor

GoogleCloudRetailV2PredictRequest.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRetailV2PredictRequest.fromJson(core.Map json_)
    : this(
        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, value) => core.MapEntry(
                  key,
                  value 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')
            ? GoogleCloudRetailV2UserEvent.fromJson(
                json_['userEvent'] as core.Map<core.String, core.dynamic>)
            : null,
        validateOnly: json_.containsKey('validateOnly')
            ? json_['validateOnly'] as core.bool
            : null,
      );