toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() {
  Map<String, dynamic> result = {};

  result["overallStatus"] = overallStatus.value;
  result["mrz"] = mrz.value;
  result["text"] = text.value;
  result["docType"] = docType.value;
  result["security"] = security.value;
  result["imageQA"] = imageQA.value;
  result["expiry"] = expiry.value;
  result["vds"] = vds.value;
  result["pagesCount"] = pagesCount;

  return result;
}