toJson method

Json toJson()

Serializes these settings to JSON.

Implementation

Json toJson() => {
  "splitMode": splitMode.index,
  "mapBlockSize": mapBlockSize,
  "maxFps": maxFps,
  "theme": themeMode.name,
  "splitCameras": splitCameras,
  "preferTankControls": preferTankControls,
  "versionChecking": versionChecking,
  "presets": presets,
  "defaultPreset": defaultPreset,
};