toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final instanceWarmupPeriod = this.instanceWarmupPeriod;
  final maximumScalingStepSize = this.maximumScalingStepSize;
  final minimumScalingStepSize = this.minimumScalingStepSize;
  final status = this.status;
  final targetCapacity = this.targetCapacity;
  return {
    if (instanceWarmupPeriod != null)
      'instanceWarmupPeriod': instanceWarmupPeriod,
    if (maximumScalingStepSize != null)
      'maximumScalingStepSize': maximumScalingStepSize,
    if (minimumScalingStepSize != null)
      'minimumScalingStepSize': minimumScalingStepSize,
    if (status != null) 'status': status.toValue(),
    if (targetCapacity != null) 'targetCapacity': targetCapacity,
  };
}