toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['cid'] = cid;
  data['chatId'] = chatId;
  data['link'] = link;
  data['fromCAIP10'] = fromCAIP10;
  data['toCAIP10'] = toCAIP10;
  data['fromDID'] = fromDID;
  data['toDID'] = toDID;
  data['messageType'] = messageType;
  data['messageContent'] = messageContent;
  data['signature'] = signature;
  data['sigType'] = sigType;
  data['timestamp'] = timestamp;
  data['encType'] = encType;
  data['encryptedSecret'] = encryptedSecret;
  data['verificationProof'] = verificationProof;
  return data;
}