toJson method

Map<String, dynamic> toJson()

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,
  };
}