toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final autoScalingDisabled = this.autoScalingDisabled;
  final autoScalingRoleArn = this.autoScalingRoleArn;
  final maximumUnits = this.maximumUnits;
  final minimumUnits = this.minimumUnits;
  final scalingPolicyUpdate = this.scalingPolicyUpdate;
  return {
    if (autoScalingDisabled != null)
      'AutoScalingDisabled': autoScalingDisabled,
    if (autoScalingRoleArn != null) 'AutoScalingRoleArn': autoScalingRoleArn,
    if (maximumUnits != null) 'MaximumUnits': maximumUnits,
    if (minimumUnits != null) 'MinimumUnits': minimumUnits,
    if (scalingPolicyUpdate != null)
      'ScalingPolicyUpdate': scalingPolicyUpdate,
  };
}