@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) • 552 B
JavaScript
import { RFIDValue } from './RFIDValue';
export class RFIDValidity {
notAfter
notBefore
static fromJson(jsonObject) {
if (jsonObject == null) return null;
const result = new RFIDValidity();
result.notAfter = RFIDValue.fromJson(jsonObject["notAfter"]);
result.notBefore = RFIDValue.fromJson(jsonObject["notBefore"]);
return result;
}
toJson() {
return {
"notAfter": this.notAfter?.toJson(),
"notBefore": this.notBefore?.toJson(),
}
}
}