toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (args != null) 'args': args!,
if (command != null) 'command': command!,
if (dependsOn != null) 'dependsOn': dependsOn!,
if (env != null) 'env': env!,
if (image != null) 'image': image!,
if (livenessProbe != null) 'livenessProbe': livenessProbe!,
if (name != null) 'name': name!,
if (ports != null) 'ports': ports!,
if (resources != null) 'resources': resources!,
if (startupProbe != null) 'startupProbe': startupProbe!,
if (volumeMounts != null) 'volumeMounts': volumeMounts!,
if (workingDir != null) 'workingDir': workingDir!,
};