@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 (21 loc) • 577 B
JavaScript
/**
* 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"]
)
}
}