toJson method
Allows you to serialize object.
Implementation
Map<String, dynamic> toJson() => {
"overallStatus": overallStatus.value,
"mrz": mrz.value,
"text": text.value,
"docType": docType.value,
"security": security.value,
"imageQA": imageQA.value,
"expiry": expiry.value,
"vds": vds.value,
"pagesCount": pagesCount,
}.clearNulls();