toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (args != null) 'args': args!,
  if (command != null) 'command': command!,
  if (deploymentTimeout != null) 'deploymentTimeout': deploymentTimeout!,
  if (env != null) 'env': env!,
  if (grpcPorts != null) 'grpcPorts': grpcPorts!,
  if (healthProbe != null) 'healthProbe': healthProbe!,
  if (healthRoute != null) 'healthRoute': healthRoute!,
  if (imageUri != null) 'imageUri': imageUri!,
  if (invokeRoutePrefix != null) 'invokeRoutePrefix': invokeRoutePrefix!,
  if (livenessProbe != null) 'livenessProbe': livenessProbe!,
  if (ports != null) 'ports': ports!,
  if (predictRoute != null) 'predictRoute': predictRoute!,
  if (sharedMemorySizeMb != null) 'sharedMemorySizeMb': sharedMemorySizeMb!,
  if (startupProbe != null) 'startupProbe': startupProbe!,
};