Encodes value into bytes.
value
@override Future<Uint8List> encode(dynamic value) async { final cborValue = _toCbor(value); return Uint8List.fromList(cbor.cborEncode(cborValue)); }