decodeOutput method

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

decode the output of the channel to bytes

Implementation

@override
Uint8List decodeOutput(Object data) {
  String json = jsonEncode(data);
  return Uint8List.fromList(utf8.encode(json));
}