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.

25 lines (20 loc) 583 B
export class PACEProtocol { version stdDomainParams keyAlgorithm static fromJson(jsonObject) { if (jsonObject == null) return null const result = new PACEProtocol() result.version = jsonObject["version"] result.stdDomainParams = jsonObject["stdDomainParams"] result.keyAlgorithm = jsonObject["keyAlgorithm"] return result } toJson() { return { "version": this.version, "stdDomainParams": this.stdDomainParams, "keyAlgorithm": this.keyAlgorithm, } } }