toJson method

Map<String, dynamic> toJson()

Implementation

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