toJson method

  1. @visibleForTesting
Map<String, dynamic> toJson()

Implementation

@visibleForTesting
Map<String, dynamic> toJson() => {
      "uvTorch": uvTorch,
      "frameOrientation": frameOrientation.value,
      "faceExt": faceExt,
      "multiPageOff": multiPageOff,
      "seriesProcessMode": seriesProcessMode,
      "frameKWHLandscape": frameKWHLandscape,
      "frameKWHPortrait": frameKWHPortrait,
      "frameKWHDoublePageSpreadPortrait": frameKWHDoublePageSpreadPortrait,
      "frameKWHDoublePageSpreadLandscape": frameKWHDoublePageSpreadLandscape,
      "name": name,
      "caption": caption,
      "description": description,
      "manualCrop": manualCrop
    }.clearNulls();