UNPKG

@regulaforensics/document-reader

Version:

This is an npm module for Regula Document Reader SDK. It allows you to read various kinds of identification documents using your phone's camera.

32 lines (25 loc) 960 B
import { DocumentReader } from '../../index'; export class AuthenticityPropertiesParams { get checkHoldersSignature() { return this._checkHoldersSignature; } set checkHoldersSignature(val) { this._checkHoldersSignature = val; this._set({ "checkHoldersSignature": val }); } static fromJson(jsonObject) { if (jsonObject == null) return new AuthenticityPropertiesParams(); const result = new AuthenticityPropertiesParams(); result._checkHoldersSignature = jsonObject["checkHoldersSignature"]; return result; } _apply() { this._set(this); } _set(json) { const parentJson = { "propertiesParams": json }; var parent = DocumentReader.instance.processParams.authenticityParams; if (this === parent.propertiesParams) parent._set(parentJson); } toJson() { return { "checkHoldersSignature": this.checkHoldersSignature, } } }