@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.
27 lines (23 loc) • 579 B
JavaScript
export class Rect {
bottom;
top;
left;
right;
static fromJson(jsonObject) {
if (jsonObject == null) return null;
const result = new Rect();
result.bottom = jsonObject["bottom"];
result.top = jsonObject["top"];
result.left = jsonObject["left"];
result.right = jsonObject["right"];
return result;
}
toJson() {
return {
"bottom": this.bottom,
"top": this.top,
"left": this.left,
"right": this.right,
}
}
}