toJson method

Map<String, dynamic> toJson()

Implementation

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