LdProofVcDetail.fromJson constructor
LdProofVcDetail.fromJson(
- dynamic jsonObject
Implementation
LdProofVcDetail.fromJson(dynamic jsonObject) {
var vcDetail = credentialToMap(jsonObject);
if (vcDetail.containsKey('credential')) {
credential = VerifiableCredential.fromJson(vcDetail['credential']);
} else {
throw FormatException('credential property is needed in LdProofVcDetail');
}
if (vcDetail.containsKey('options')) {
options = LdProofVcDetailOptions.fromJson(vcDetail['options']);
} else {
throw FormatException('options property is needed in LdProofVcDetail');
}
}