toJson method

Map<String, dynamic> toJson()

Implementation

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