toJson method
Implementation
Map<String, dynamic> toJson() {
final autoPause = this.autoPause;
final maxCapacity = this.maxCapacity;
final minCapacity = this.minCapacity;
final secondsUntilAutoPause = this.secondsUntilAutoPause;
final timeoutAction = this.timeoutAction;
return {
if (autoPause != null) 'AutoPause': autoPause,
if (maxCapacity != null) 'MaxCapacity': maxCapacity,
if (minCapacity != null) 'MinCapacity': minCapacity,
if (secondsUntilAutoPause != null)
'SecondsUntilAutoPause': secondsUntilAutoPause,
if (timeoutAction != null) 'TimeoutAction': timeoutAction,
};
}