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.

45 lines (39 loc) 1.16 kB
import { CheckResult } from './CheckResult'; export class OpticalStatus { overallStatus mrz text docType security imageQA expiry vds pagesCount static fromJson(jsonObject) { if (jsonObject == null) return null; const result = new OpticalStatus(); result.overallStatus = jsonObject["overallStatus"]; result.mrz = jsonObject["mrz"]; result.text = jsonObject["text"]; result.docType = jsonObject["docType"]; result.security = jsonObject["security"]; result.imageQA = jsonObject["imageQA"]; result.expiry = jsonObject["expiry"]; result.vds = jsonObject["vds"]; result.pagesCount = jsonObject["pagesCount"]; return result; } toJson() { return { "overallStatus": this.overallStatus, "mrz": this.mrz, "text": this.text, "docType": this.docType, "security": this.security, "imageQA": this.imageQA, "expiry": this.expiry, "vds": this.vds, "pagesCount": this.pagesCount, } } }