encodeMessage method
- Object? message
override
Encodes the specified message
in binary.
Returns null if the message is null.
Implementation
@override
ByteData? encodeMessage(Object? message) {
if (message == null) {
return null;
}
return const StringCodec().encodeMessage(json.encode(message));
}