encode method

  1. @override
Future<Uint8List> encode(
  1. dynamic value
)
override

Encodes value into bytes.

Implementation

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