toJson method
Implementation
Map<String, dynamic> toJson() {
final changeComputeType = this.changeComputeType;
final increaseVolumeSize = this.increaseVolumeSize;
final rebuildWorkspace = this.rebuildWorkspace;
final restartWorkspace = this.restartWorkspace;
final switchRunningMode = this.switchRunningMode;
return {
if (changeComputeType != null)
'ChangeComputeType': changeComputeType.toValue(),
if (increaseVolumeSize != null)
'IncreaseVolumeSize': increaseVolumeSize.toValue(),
if (rebuildWorkspace != null)
'RebuildWorkspace': rebuildWorkspace.toValue(),
if (restartWorkspace != null)
'RestartWorkspace': restartWorkspace.toValue(),
if (switchRunningMode != null)
'SwitchRunningMode': switchRunningMode.toValue(),
};
}