GoogleCloudAiplatformV1DirectPredictRequest.fromJson constructor

GoogleCloudAiplatformV1DirectPredictRequest.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1DirectPredictRequest.fromJson(core.Map json_)
    : this(
        inputs: json_.containsKey('inputs')
            ? (json_['inputs'] as core.List)
                .map((value) => GoogleCloudAiplatformV1Tensor.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        parameters: json_.containsKey('parameters')
            ? GoogleCloudAiplatformV1Tensor.fromJson(
                json_['parameters'] as core.Map<core.String, core.dynamic>)
            : null,
      );