toJson method
Implementation
@override
Object toJson() => {
'imageUri': imageUri,
if (command.isNotDefault) 'command': command,
if (args.isNotDefault) 'args': args,
if (env.isNotDefault) 'env': encodeList(env),
if (ports.isNotDefault) 'ports': encodeList(ports),
if (predictRoute.isNotDefault) 'predictRoute': predictRoute,
if (healthRoute.isNotDefault) 'healthRoute': healthRoute,
if (invokeRoutePrefix.isNotDefault) 'invokeRoutePrefix': invokeRoutePrefix,
if (grpcPorts.isNotDefault) 'grpcPorts': encodeList(grpcPorts),
if (deploymentTimeout != null)
'deploymentTimeout': deploymentTimeout!.toJson(),
if (sharedMemorySizeMb.isNotDefault)
'sharedMemorySizeMb': encodeInt64(sharedMemorySizeMb),
if (startupProbe != null) 'startupProbe': startupProbe!.toJson(),
if (healthProbe != null) 'healthProbe': healthProbe!.toJson(),
if (livenessProbe != null) 'livenessProbe': livenessProbe!.toJson(),
};