toJson method
Implementation
@override
Object toJson() => {
if (persistentResourceId.isNotDefault)
'persistentResourceId': persistentResourceId,
'workerPoolSpecs': [for (final i in workerPoolSpecs) i.toJson()],
if (scheduling case final scheduling?) 'scheduling': scheduling.toJson(),
if (serviceAccount.isNotDefault) 'serviceAccount': serviceAccount,
if (network.isNotDefault) 'network': network,
if (reservedIpRanges.isNotDefault) 'reservedIpRanges': reservedIpRanges,
if (pscInterfaceConfig case final pscInterfaceConfig?)
'pscInterfaceConfig': pscInterfaceConfig.toJson(),
if (baseOutputDirectory case final baseOutputDirectory?)
'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,
};