encode method
Implementation
Object encode() {
return <Object?>[
uuid,
type,
fromAccount,
fromNick,
fromAvatar,
content,
toAccounts,
time,
attachment?.encode(),
notification?.encode(),
eventType,
operatorAccount,
recallMessageId,
chatroomType.index,
];
}