fromJson static method

DocumentReaderScenario? fromJson(
  1. dynamic jsonObject
)

Implementation

static DocumentReaderScenario? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = new DocumentReaderScenario();

  result.name = jsonObject["name"];
  result.caption = jsonObject["caption"];
  result.description = jsonObject["description"];
  result.multiPageOff = jsonObject["multiPageOff"];
  result.frameKWHLandscape = jsonObject["frameKWHLandscape"] == null ? null : jsonObject["frameKWHLandscape"].toDouble();
  result.frameKWHPortrait = jsonObject["frameKWHPortrait"] == null ? null : jsonObject["frameKWHPortrait"].toDouble();
  result.frameKWHDoublePageSpreadPortrait = jsonObject["frameKWHDoublePageSpreadPortrait"] == null ? null : jsonObject["frameKWHDoublePageSpreadPortrait"].toDouble();
  result.frameKWHDoublePageSpreadLandscape = jsonObject["frameKWHDoublePageSpreadLandscape"] == null ? null : jsonObject["frameKWHDoublePageSpreadLandscape"].toDouble();
  result.frameOrientation = jsonObject["frameOrientation"];
  result.uvTorch = jsonObject["uvTorch"];
  result.faceExt = jsonObject["faceExt"];
  result.seriesProcessMode = jsonObject["seriesProcessMode"];
  result.manualCrop = jsonObject["manualCrop"];

  return result;
}