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 (28 loc) 761 B
/** * Class contains info about database preparation progress. */ export class PrepareProgress { downloadedBytes totalBytes progress constructor(downloadedBytes, totalBytes, progress) { this.downloadedBytes = downloadedBytes this.totalBytes = totalBytes this.progress = progress } static fromJson(jsonObject) { if (jsonObject == null) return null return new PrepareProgress( jsonObject["downloadedBytes"], jsonObject["totalBytes"], jsonObject["progress"] ) } toJson() { return { "downloadedBytes": this.downloadedBytes, "totalBytes": this.totalBytes, "progress": this.progress, } } }