toJson method
Implementation
@override
Object toJson() => {
'dedicatedResources': ?dedicatedResources?.toJson(),
'automaticResources': ?automaticResources?.toJson(),
'sharedResources': ?sharedResources,
'fullFineTunedResources': ?fullFineTunedResources?.toJson(),
if (id.isNotDefault) 'id': id,
if (model.isNotDefault) 'model': model,
if (modelVersionId.isNotDefault) 'modelVersionId': modelVersionId,
if (displayName.isNotDefault) 'displayName': displayName,
'createTime': ?createTime?.toJson(),
'explanationSpec': ?explanationSpec?.toJson(),
if (disableExplanations.isNotDefault)
'disableExplanations': disableExplanations,
if (serviceAccount.isNotDefault) 'serviceAccount': serviceAccount,
if (enableContainerLogging.isNotDefault)
'enableContainerLogging': enableContainerLogging,
if (disableContainerLogging.isNotDefault)
'disableContainerLogging': disableContainerLogging,
if (enableAccessLogging.isNotDefault)
'enableAccessLogging': enableAccessLogging,
'privateEndpoints': ?privateEndpoints?.toJson(),
'fasterDeploymentConfig': ?fasterDeploymentConfig?.toJson(),
'rolloutOptions': ?rolloutOptions?.toJson(),
'status': ?status?.toJson(),
if (systemLabels.isNotDefault) 'systemLabels': systemLabels,
if (checkpointId.isNotDefault) 'checkpointId': checkpointId,
'speculativeDecodingSpec': ?speculativeDecodingSpec?.toJson(),
};