FormatProperty.fromJson constructor
FormatProperty.fromJson(
- dynamic formatJson
Implementation
FormatProperty.fromJson(dynamic formatJson) {
var format = credentialToMap(formatJson);
if (format.containsKey('jwt')) jwt = JwtFormat.fromJson(format['jwt']);
if (format.containsKey('jwt_vc')) {
jwtVc = JwtFormat.fromJson(format['jwt_vc']);
}
if (format.containsKey(['jwt_vp'])) {
jwtVp = JwtFormat.fromJson(format['jwt_vp']);
}
if (format.containsKey(['ldp'])) {
ldp = LinkedDataProofFormat.fromJson(format['ldp']);
}
if (format.containsKey(['ldp_vc'])) {
ldpVc = LinkedDataProofFormat.fromJson(format['ldp_vc']);
}
if (format.containsKey('ldp_vp')) {
ldpVp = LinkedDataProofFormat.fromJson(format['ldp_vp']);
}
}