LayoutException.deserialize constructor

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

Implementation

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