toJson method
Implementation
Map<String, dynamic> toJson() {
final targetGroupArn = this.targetGroupArn;
final weight = this.weight;
return {
if (targetGroupArn != null) 'TargetGroupArn': targetGroupArn,
if (weight != null) 'Weight': weight,
};
}