fromJson static method

AuthenticityParams fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

static AuthenticityParams fromJson(jsonObject) {
  if (jsonObject == null) return AuthenticityParams();
  var result = AuthenticityParams();
  result.testSetters = {};

  result.useLivenessCheck = jsonObject["useLivenessCheck"];
  result.livenessParams =
      LivenessParams.fromJson(jsonObject["livenessParams"]);
  result.checkUVLuminiscence = jsonObject["checkUVLuminiscence"];
  result.checkIRB900 = jsonObject["checkIRB900"];
  result.checkImagePatterns = jsonObject["checkImagePatterns"];
  result.checkFibers = jsonObject["checkFibers"];
  result.checkExtMRZ = jsonObject["checkExtMRZ"];
  result.checkExtOCR = jsonObject["checkExtOCR"];
  result.checkAxial = jsonObject["checkAxial"];
  result.checkBarcodeFormat = jsonObject["checkBarcodeFormat"];
  result.checkIRVisibility = jsonObject["checkIRVisibility"];
  result.checkIPI = jsonObject["checkIPI"];
  result.checkPhotoEmbedding = jsonObject["checkPhotoEmbedding"];
  result.checkPhotoComparison = jsonObject["checkPhotoComparison"];
  result.checkLetterScreen = jsonObject["checkLetterScreen"];

  return result;
}