toJson method
Implementation
@override
Map<String, Object?> toJson() => {
if (recipient != null) "recipient": encodeValue(recipient),
if (channel != null) "channel": encodeValue(channel),
if (senderId != null) "sender_id": encodeValue(senderId),
};