toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['spaceId'] = spaceId;
  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['spaceInformation'] = spaceInformation;
  data['msg'] = msg?.toJson();
  return data;
}