toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  'automaticUpdatePolicy': ?automaticUpdatePolicy?.toJson(),
  'onDeployUpdatePolicy': ?onDeployUpdatePolicy?.toJson(),
  if (build.isNotDefault) 'build': build,
  if (runtime.isNotDefault) 'runtime': runtime,
  if (entryPoint.isNotDefault) 'entryPoint': entryPoint,
  'source': ?source?.toJson(),
  'sourceProvenance': ?sourceProvenance?.toJson(),
  if (workerPool.isNotDefault) 'workerPool': workerPool,
  if (environmentVariables.isNotDefault)
    'environmentVariables': environmentVariables,
  if (dockerRegistry.isNotDefault) 'dockerRegistry': dockerRegistry.toJson(),
  if (dockerRepository.isNotDefault) 'dockerRepository': dockerRepository,
  if (serviceAccount.isNotDefault) 'serviceAccount': serviceAccount,
};