toJson method
Implementation
Map<String, dynamic> toJson() {
final instanceGroupId = this.instanceGroupId;
final configurations = this.configurations;
final eC2InstanceIdsToTerminate = this.eC2InstanceIdsToTerminate;
final instanceCount = this.instanceCount;
final shrinkPolicy = this.shrinkPolicy;
return {
'InstanceGroupId': instanceGroupId,
if (configurations != null) 'Configurations': configurations,
if (eC2InstanceIdsToTerminate != null)
'EC2InstanceIdsToTerminate': eC2InstanceIdsToTerminate,
if (instanceCount != null) 'InstanceCount': instanceCount,
if (shrinkPolicy != null) 'ShrinkPolicy': shrinkPolicy,
};
}