AttachmentData.fromJson constructor

AttachmentData.fromJson(
  1. dynamic jsonData
)

Implementation

AttachmentData.fromJson(dynamic jsonData) {
  Map<String, dynamic> decoded = credentialToMap(jsonData);
  jws = decoded['jws'];
  hash = decoded['hash'];
  if (decoded.containsKey('links')) links = decoded['links']?.cast<String>();
  base64 = decoded['base64'];
  json = decoded['json'];
}