toJson method
Implementation
@override
Object toJson() => {
if (persistentResourceId.isNotDefault)
'persistentResourceId': persistentResourceId,
'workerPoolSpecs': [for (final i in workerPoolSpecs) i.toJson()],
'scheduling': ?scheduling?.toJson(),
if (serviceAccount.isNotDefault) 'serviceAccount': serviceAccount,
if (network.isNotDefault) 'network': network,
if (reservedIpRanges.isNotDefault) 'reservedIpRanges': reservedIpRanges,
'pscInterfaceConfig': ?pscInterfaceConfig?.toJson(),
'baseOutputDirectory': ?baseOutputDirectory?.toJson(),
if (protectedArtifactLocationId.isNotDefault)
'protectedArtifactLocationId': protectedArtifactLocationId,
if (tensorboard.isNotDefault) 'tensorboard': tensorboard,
if (enableWebAccess.isNotDefault) 'enableWebAccess': enableWebAccess,
if (enableDashboardAccess.isNotDefault)
'enableDashboardAccess': enableDashboardAccess,
if (experiment.isNotDefault) 'experiment': experiment,
if (experimentRun.isNotDefault) 'experimentRun': experimentRun,
if (models.isNotDefault) 'models': models,
};