toJson method

  1. @visibleForTesting
Map<String, dynamic> toJson()

Implementation

@visibleForTesting
Map<String, dynamic> toJson() => {
      "data": _bytesToBase64(data),
      "auxPCD": auxPCD,
      "challengePICC": challengePICC,
      "hashPK": hashPK,
      "idPICC": idPICC,
    }.clearNulls();