toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final targetValue = this.targetValue;
  final disableScaleIn = this.disableScaleIn;
  final scaleInCooldown = this.scaleInCooldown;
  final scaleOutCooldown = this.scaleOutCooldown;
  return {
    'TargetValue': targetValue,
    if (disableScaleIn != null) 'DisableScaleIn': disableScaleIn,
    if (scaleInCooldown != null) 'ScaleInCooldown': scaleInCooldown,
    if (scaleOutCooldown != null) 'ScaleOutCooldown': scaleOutCooldown,
  };
}