encodeInput method

  1. @override
Object encodeInput(
  1. Uint8List data
)
override

encode the input of the channel from bytes

Implementation

@override
Object encodeInput(Uint8List data) {
  String json = utf8.decode(data);
  return jsonDecode(json);
}