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.

24 lines (18 loc) 481 B
import { BytesData } from './BytesData'; export class DocFeature { type data static fromJson(jsonObject) { if (jsonObject == null) return null; const result = new DocFeature(); result.type = jsonObject["type"]; result.data = BytesData.fromJson(jsonObject["data"]); return result; } toJson() { return { "type": this.type, "data": this.data?.toJson(), } } }