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 (19 loc) 434 B
export class PAAttribute { type value constructor() { } static fromJson(jsonObject) { if (jsonObject == null) return null const result = new PAAttribute() result.type = jsonObject["type"] ?? "" result.value = jsonObject["value"] ?? "" return result } toJson() { return { "type": this.type, "value": this.value, } } }