fromJson static method

TAChallenge? fromJson(
  1. dynamic jsonObject
)

Implementation

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

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

  return result;
}