encodeOutput method

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

encode the output of the channel from bytes

Implementation

@override
Object encodeOutput(Uint8List data) {
  String js = utf8.decode(data.sublist(1));
  Map jsData = jsonDecode(js);
  return jsData['value'];
}