toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['chatId'] = chatId;
  data['about'] = about;
  data['did'] = did;
  data['intent'] = intent;
  data['intentSentBy'] = intentSentBy;
  data['intentTimestamp'] = intentTimestamp;
  data['publicKey'] = publicKey;
  data['profilePicture'] = profilePicture;
  data['threadhash'] = threadhash;
  data['wallets'] = wallets;
  data['combinedDID'] = combinedDID;
  data['name'] = name;
  data['groupInformation'] = groupInformation;
  data['msg'] = msg?.toJson();
  return data;
}