toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() => {
      "documentType": documentType?.map((e) => e.toJson()).toList(),
      "documentPosition": documentPosition?.map((e) => e.toJson()).toList(),
      "barcodePosition": barcodePosition?.map((e) => e.toJson()).toList(),
      "mrzPosition": mrzPosition?.map((e) => e.toJson()).toList(),
      "imageQuality": imageQuality?.map((e) => e.toJson()).toList(),
      "textResult": textResult?.toJson(),
      "graphicResult": graphicResult?.toJson(),
      "status": status.toJson(),
      "authenticityResult": authenticityResult?.toJson(),
      "rfidSessionData": rfidSessionData?.toJson(),
      "barcodeResult": barcodeResult?.toJson(),
      "vdsncData": vdsncData?.toJson(),
      "chipPage": chipPage,
      "processingFinishedStatus": processingFinishedStatus.value,
      "morePagesAvailable": morePagesAvailable,
      "elapsedTime": elapsedTime,
      "elapsedTimeRFID": elapsedTimeRFID,
      "rawResult": rawResult,
      "transactionInfo": transactionInfo?.toJson(),
    }.clearNulls();