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