toJson method
Implementation
Map<String, dynamic> toJson() {
final instanceCount = this.instanceCount;
final instanceRole = this.instanceRole;
final instanceType = this.instanceType;
final autoScalingPolicy = this.autoScalingPolicy;
final bidPrice = this.bidPrice;
final configurations = this.configurations;
final ebsConfiguration = this.ebsConfiguration;
final market = this.market;
final name = this.name;
return {
'InstanceCount': instanceCount,
'InstanceRole': instanceRole.toValue(),
'InstanceType': instanceType,
if (autoScalingPolicy != null) 'AutoScalingPolicy': autoScalingPolicy,
if (bidPrice != null) 'BidPrice': bidPrice,
if (configurations != null) 'Configurations': configurations,
if (ebsConfiguration != null) 'EbsConfiguration': ebsConfiguration,
if (market != null) 'Market': market.toValue(),
if (name != null) 'Name': name,
};
}