toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'message': message?.toJson(),
'messageContent': messageContent,
'messageType': messageType,
'receiverAddress': recipient,
'accountAddress': account,
'pgpPrivateKey': pgpPrivateKey
};
}