MessageRawData.fromJson constructor

MessageRawData.fromJson(
  1. Map<String, dynamic> data
)

Implementation

factory MessageRawData.fromJson(Map<String, dynamic> data) {
  return MessageRawData(
    fromCAIP10: data['fromCAIP10'],
    toCAIP10: data['toCAIP10'],
    fromDID: data['fromDID'],
    toDID: data['toDID'],
    encType: data['encType'],
    encryptedSecret: data['encryptedSecret'],
    signature: data['signature'],
    sigType: data['sigType'],
    verificationProof: data['verificationProof'],
    previousReference: data['link'],
  );
}