@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.
28 lines (23 loc) • 591 B
JavaScript
export class BytesData {
data
length
status
type
static fromJson(jsonObject) {
if (jsonObject == null) return null;
const result = new BytesData();
result.data = jsonObject["data"];
result.length = jsonObject["length"];
result.status = jsonObject["status"];
result.type = jsonObject["type"];
return result;
}
toJson() {
return {
"data": this.data,
"length": this.length,
"status": this.status,
"type": this.type,
}
}
}