LinkedDataProofFormat.fromJson constructor

LinkedDataProofFormat.fromJson(
  1. dynamic proofTypeJson
)

Implementation

LinkedDataProofFormat.fromJson(dynamic proofTypeJson) {
  var proofTypeTmp = credentialToMap(proofTypeJson);
  if (proofTypeTmp.containsKey('proof_type')) {
    proofType = proofTypeTmp['proof_type'].cast<String>();
  } else {
    throw FormatException('JwtFormat needs alg property');
  }
}