toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final computeTypeName = this.computeTypeName;
  final rootVolumeSizeGib = this.rootVolumeSizeGib;
  final runningMode = this.runningMode;
  final runningModeAutoStopTimeoutInMinutes =
      this.runningModeAutoStopTimeoutInMinutes;
  final userVolumeSizeGib = this.userVolumeSizeGib;
  return {
    if (computeTypeName != null) 'ComputeTypeName': computeTypeName.toValue(),
    if (rootVolumeSizeGib != null) 'RootVolumeSizeGib': rootVolumeSizeGib,
    if (runningMode != null) 'RunningMode': runningMode.toValue(),
    if (runningModeAutoStopTimeoutInMinutes != null)
      'RunningModeAutoStopTimeoutInMinutes':
          runningModeAutoStopTimeoutInMinutes,
    if (userVolumeSizeGib != null) 'UserVolumeSizeGib': userVolumeSizeGib,
  };
}