toJson method
Implementation
@override
Object toJson() => {
'imageUri': imageUri,
if (command.isNotDefault) 'command': command,
if (args.isNotDefault) 'args': args,
if (env.isNotDefault) 'env': [for (final i in env) i.toJson()],
if (ports.isNotDefault) 'ports': [for (final i in ports) i.toJson()],
if (predictRoute.isNotDefault) 'predictRoute': predictRoute,
if (healthRoute.isNotDefault) 'healthRoute': healthRoute,
if (invokeRoutePrefix.isNotDefault) 'invokeRoutePrefix': invokeRoutePrefix,
if (grpcPorts.isNotDefault)
'grpcPorts': [for (final i in grpcPorts) i.toJson()],
'deploymentTimeout': ?deploymentTimeout?.toJson(),
if (sharedMemorySizeMb.isNotDefault)
'sharedMemorySizeMb': sharedMemorySizeMb.toString(),
'startupProbe': ?startupProbe?.toJson(),
'healthProbe': ?healthProbe?.toJson(),
'livenessProbe': ?livenessProbe?.toJson(),
};