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