toJson method
Implementation
Map<String, dynamic> toJson() {
final instanceType = this.instanceType;
final weightedCapacity = this.weightedCapacity;
return {
'InstanceType': instanceType.toValue(),
if (weightedCapacity != null) 'WeightedCapacity': weightedCapacity,
};
}