Utf8Exception.deserialize constructor

Utf8Exception.deserialize({
  1. List<int>? bytes,
  2. CborObject<Object?>? object,
})

Implementation

factory Utf8Exception.deserialize({List<int>? bytes, CborObject? object}) {
  final values = CborTagSerializable.decodeTaggedValue(
    identifier: BlockchainUtilsSerializationIdentifier.utf8Error,
    cborBytes: bytes,
    cborObject: object,
  );
  return Utf8Exception(
    values.rawValueAt(0),
    details: values.maybeRawMapAt<String, String?>(1),
  );
}