Proof.fromJson constructor
Implementation
factory Proof.fromJson(Map<String, dynamic> json) {
const known = <String>{
'type',
'cryptosuite',
'verificationMethod',
'created',
'proofPurpose',
'proofValue',
};
return Proof(
type: json['type'] as String,
cryptosuite: json['cryptosuite'] as String,
verificationMethod: json['verificationMethod'] as String,
created: json['created'] as String,
proofPurpose: json['proofPurpose'] as String,
proofValue: json['proofValue'] as String,
extra: <String, Object?>{
for (final e in json.entries)
if (!known.contains(e.key)) e.key: e.value,
},
);
}