toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  'sourceCodeSpec': ?sourceCodeSpec?.toJson(),
  'containerSpec': ?containerSpec?.toJson(),
  'serviceAccount': ?serviceAccount,
  'packageSpec': ?packageSpec?.toJson(),
  'deploymentSpec': ?deploymentSpec?.toJson(),
  if (classMethods.isNotDefault)
    'classMethods': [for (final i in classMethods) i.toJson()],
  if (agentFramework.isNotDefault) 'agentFramework': agentFramework,
  if (identityType.isNotDefault) 'identityType': identityType.toJson(),
};