toJson method
Implementation
Map<String, dynamic> toJson() {
final computeType = this.computeType;
final image = this.image;
final type = this.type;
final certificate = this.certificate;
final environmentVariables = this.environmentVariables;
final imagePullCredentialsType = this.imagePullCredentialsType;
final privilegedMode = this.privilegedMode;
final registryCredential = this.registryCredential;
return {
'computeType': computeType.toValue(),
'image': image,
'type': type.toValue(),
if (certificate != null) 'certificate': certificate,
if (environmentVariables != null)
'environmentVariables': environmentVariables,
if (imagePullCredentialsType != null)
'imagePullCredentialsType': imagePullCredentialsType.toValue(),
if (privilegedMode != null) 'privilegedMode': privilegedMode,
if (registryCredential != null) 'registryCredential': registryCredential,
};
}