toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() => {
      "barcodeType": barcodeType.value,
      "status": status.value,
      "pdf417Info": pdf417Info?.toJson(),
      "data": _bytesToBase64(data),
      "pageIndex": pageIndex,
    }.clearNulls();