toJson method
Implementation
Map<String, dynamic> toJson() {
final containerName = this.containerName;
final containerPort = this.containerPort;
final healthCheck = this.healthCheck;
return {
'containerName': containerName,
'containerPort': containerPort,
if (healthCheck != null) 'healthCheck': healthCheck,
};
}