fromJson static method

  1. @visibleForTesting
TAChallenge? fromJson(
  1. dynamic jsonObject
)

Implementation

@visibleForTesting
static TAChallenge? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = TAChallenge();

  result._data = _bytesFromBase64(jsonObject["data"])!;
  result._auxPCD = jsonObject["auxPCD"] ?? "";
  result._challengePICC = jsonObject["challengePICC"] ?? "";
  result._hashPK = jsonObject["hashPK"] ?? "";
  result._idPICC = jsonObject["idPICC"] ?? "";

  return result;
}