fromJson static method
Implementation
@visibleForTesting
static DocReaderScenario? fromJson(jsonObject) {
if (jsonObject == null) return null;
var result = DocReaderScenario();
result._uvTorch = jsonObject["uvTorch"];
result._frameOrientation =
DocReaderOrientation.getByValue(jsonObject["frameOrientation"])!;
result._faceExt = jsonObject["faceExt"];
result._multiPageOff = jsonObject["multiPageOff"];
result._seriesProcessMode = jsonObject["seriesProcessMode"];
result._frameKWHLandscape = jsonObject["frameKWHLandscape"].toDouble();
result._frameKWHPortrait = jsonObject["frameKWHPortrait"].toDouble();
result._frameKWHDoublePageSpreadPortrait =
jsonObject["frameKWHDoublePageSpreadPortrait"].toDouble();
result._frameKWHDoublePageSpreadLandscape =
jsonObject["frameKWHDoublePageSpreadLandscape"].toDouble();
result._name = jsonObject["name"];
result._caption = jsonObject["caption"];
result._description = jsonObject["description"];
result._manualCrop = jsonObject["manualCrop"];
return result;
}