toJson method
Implementation
Map<String, dynamic> toJson() {
final maximumCapacityUnits = this.maximumCapacityUnits;
final minimumCapacityUnits = this.minimumCapacityUnits;
final unitType = this.unitType;
final maximumCoreCapacityUnits = this.maximumCoreCapacityUnits;
final maximumOnDemandCapacityUnits = this.maximumOnDemandCapacityUnits;
return {
'MaximumCapacityUnits': maximumCapacityUnits,
'MinimumCapacityUnits': minimumCapacityUnits,
'UnitType': unitType.toValue(),
if (maximumCoreCapacityUnits != null)
'MaximumCoreCapacityUnits': maximumCoreCapacityUnits,
if (maximumOnDemandCapacityUnits != null)
'MaximumOnDemandCapacityUnits': maximumOnDemandCapacityUnits,
};
}