initCborSerializer function
Implementation
SelfDescribeEncoder initCborSerializer() {
cbor.init();
final output = cbor.OutputStandard();
const principalEncoder = PrincipalEncoder();
const bigIntEncoder = BigIntEncoder();
const bufferEncoder = BufferEncoder();
const byteBufferEncoder = ByteBufferEncoder();
return SelfDescribeEncoder(output)
..addEncoder(principalEncoder)
..addEncoder(bigIntEncoder)
..addEncoder(bufferEncoder)
..addEncoder(byteBufferEncoder);
}