GoogleCloudAiplatformV1BatchPredictionJob.fromJson constructor
GoogleCloudAiplatformV1BatchPredictionJob.fromJson(
- Map json_
Implementation
GoogleCloudAiplatformV1BatchPredictionJob.fromJson(core.Map json_)
: this(
completionStats: json_.containsKey('completionStats')
? GoogleCloudAiplatformV1CompletionStats.fromJson(
json_['completionStats']
as core.Map<core.String, core.dynamic>)
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
dedicatedResources: json_.containsKey('dedicatedResources')
? GoogleCloudAiplatformV1BatchDedicatedResources.fromJson(
json_['dedicatedResources']
as core.Map<core.String, core.dynamic>)
: null,
disableContainerLogging: json_.containsKey('disableContainerLogging')
? json_['disableContainerLogging'] as core.bool
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
encryptionSpec: json_.containsKey('encryptionSpec')
? GoogleCloudAiplatformV1EncryptionSpec.fromJson(
json_['encryptionSpec']
as core.Map<core.String, core.dynamic>)
: null,
endTime: json_.containsKey('endTime')
? json_['endTime'] as core.String
: null,
error: json_.containsKey('error')
? GoogleRpcStatus.fromJson(
json_['error'] as core.Map<core.String, core.dynamic>)
: null,
explanationSpec: json_.containsKey('explanationSpec')
? GoogleCloudAiplatformV1ExplanationSpec.fromJson(
json_['explanationSpec']
as core.Map<core.String, core.dynamic>)
: null,
generateExplanation: json_.containsKey('generateExplanation')
? json_['generateExplanation'] as core.bool
: null,
inputConfig: json_.containsKey('inputConfig')
? GoogleCloudAiplatformV1BatchPredictionJobInputConfig.fromJson(
json_['inputConfig'] as core.Map<core.String, core.dynamic>)
: null,
instanceConfig: json_.containsKey('instanceConfig')
? GoogleCloudAiplatformV1BatchPredictionJobInstanceConfig
.fromJson(json_['instanceConfig']
as core.Map<core.String, core.dynamic>)
: 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,
manualBatchTuningParameters:
json_.containsKey('manualBatchTuningParameters')
? GoogleCloudAiplatformV1ManualBatchTuningParameters.fromJson(
json_['manualBatchTuningParameters']
as core.Map<core.String, core.dynamic>)
: null,
model:
json_.containsKey('model') ? json_['model'] as core.String : null,
modelParameters: json_.containsKey('modelParameters')
? json_['modelParameters']
: null,
modelVersionId: json_.containsKey('modelVersionId')
? json_['modelVersionId'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
outputConfig: json_.containsKey('outputConfig')
? GoogleCloudAiplatformV1BatchPredictionJobOutputConfig.fromJson(
json_['outputConfig'] as core.Map<core.String, core.dynamic>)
: null,
outputInfo: json_.containsKey('outputInfo')
? GoogleCloudAiplatformV1BatchPredictionJobOutputInfo.fromJson(
json_['outputInfo'] as core.Map<core.String, core.dynamic>)
: null,
partialFailures: json_.containsKey('partialFailures')
? (json_['partialFailures'] as core.List)
.map((value) => GoogleRpcStatus.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
resourcesConsumed: json_.containsKey('resourcesConsumed')
? GoogleCloudAiplatformV1ResourcesConsumed.fromJson(
json_['resourcesConsumed']
as core.Map<core.String, core.dynamic>)
: null,
serviceAccount: json_.containsKey('serviceAccount')
? json_['serviceAccount'] as core.String
: null,
startTime: json_.containsKey('startTime')
? json_['startTime'] as core.String
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
unmanagedContainerModel: json_.containsKey('unmanagedContainerModel')
? GoogleCloudAiplatformV1UnmanagedContainerModel.fromJson(
json_['unmanagedContainerModel']
as core.Map<core.String, core.dynamic>)
: null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
);