fromJson static method

ScannerConfig? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  result.scenario = jsonObject["scenario"];
  result.livePortrait = jsonObject["livePortrait"];
  result.extPortrait = jsonObject["extPortrait"];
  result.onlineProcessingConfig = OnlineProcessingConfig.fromJson(jsonObject["onlineProcessingConfig"]);
  result.cameraId = jsonObject["cameraId"];

  return result;
}