toJson method
Implementation
Map<String, dynamic> toJson() {
final instanceType = this.instanceType;
final bidPrice = this.bidPrice;
final bidPriceAsPercentageOfOnDemandPrice =
this.bidPriceAsPercentageOfOnDemandPrice;
final configurations = this.configurations;
final ebsConfiguration = this.ebsConfiguration;
final weightedCapacity = this.weightedCapacity;
return {
'InstanceType': instanceType,
if (bidPrice != null) 'BidPrice': bidPrice,
if (bidPriceAsPercentageOfOnDemandPrice != null)
'BidPriceAsPercentageOfOnDemandPrice':
bidPriceAsPercentageOfOnDemandPrice,
if (configurations != null) 'Configurations': configurations,
if (ebsConfiguration != null) 'EbsConfiguration': ebsConfiguration,
if (weightedCapacity != null) 'WeightedCapacity': weightedCapacity,
};
}