// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.12.0.

#![allow(
    non_camel_case_types,
    unused,
    non_snake_case,
    clippy::needless_return,
    clippy::redundant_closure_call,
    clippy::redundant_closure,
    clippy::useless_conversion,
    clippy::unit_arg,
    clippy::unused_unit,
    clippy::double_parens,
    clippy::let_and_return,
    clippy::too_many_arguments,
    clippy::match_single_binding,
    clippy::clone_on_copy,
    clippy::let_unit_value,
    clippy::deref_addrof,
    clippy::explicit_auto_deref,
    clippy::borrow_deref_ref,
    clippy::uninlined_format_args,
    clippy::needless_borrow
)]

// Section: imports

use crate::*;
use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt};
use flutter_rust_bridge::for_generated::{Lifetimeable, Lockable, transform_result_dco};
use flutter_rust_bridge::{Handler, IntoIntoDart};

// Section: boilerplate

flutter_rust_bridge::frb_generated_boilerplate!(
    default_stream_sink_codec = SseCodec,
    default_rust_opaque = RustOpaqueMoi,
    default_rust_auto_opaque = RustAutoOpaqueMoi,
);
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.12.0";
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 1859615725;

// Section: executor

flutter_rust_bridge::frb_generated_default_handler!();

// Section: wire_funcs

fn wire__crate__DocumentExtractorDartImpl_auto_accessor_get_field0_impl(
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::<flutter_rust_bridge::for_generated::SseCodec, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "DocumentExtractorDartImpl_auto_accessor_get_field0",
            port: None,
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_that = <RustOpaqueMoi<
                flutter_rust_bridge::for_generated::RustAutoOpaqueInner<DocumentExtractorDartImpl>,
            >>::sse_decode(&mut deserializer);
            deserializer.end();
            transform_result_sse::<_, ()>((move || {
                let mut api_that_guard = None;
                let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![
                    flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false),
                ]);
                for i in decode_indices_ {
                    match i {
                        0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()),
                        _ => unreachable!(),
                    }
                }
                let api_that_guard = api_that_guard.unwrap();
                let output_ok = Result::<_, ()>::Ok(api_that_guard.field0.clone())?;
                Ok(output_ok)
            })())
        },
    )
}
fn wire__crate__DocumentExtractorDartImpl_auto_accessor_set_field0_impl(
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::<flutter_rust_bridge::for_generated::SseCodec, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "DocumentExtractorDartImpl_auto_accessor_set_field0",
            port: None,
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_that = <RustOpaqueMoi<
                flutter_rust_bridge::for_generated::RustAutoOpaqueInner<DocumentExtractorDartImpl>,
            >>::sse_decode(&mut deserializer);
            let api_field0 = <Arc<dyn DocumentExtractor + Send + Sync>>::sse_decode(&mut deserializer);
            deserializer.end();
            transform_result_sse::<_, ()>((move || {
                let mut api_that_guard = None;
                let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![
                    flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true),
                ]);
                for i in decode_indices_ {
                    match i {
                        0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()),
                        _ => unreachable!(),
                    }
                }
                let mut api_that_guard = api_that_guard.unwrap();
                let output_ok = Result::<_, ()>::Ok({
                    {
                        api_that_guard.field0 = api_field0;
                    };
                })?;
                Ok(output_ok)
            })())
        },
    )
}
fn wire__crate__EmbeddingBackendDartImpl_auto_accessor_get_field0_impl(
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::<flutter_rust_bridge::for_generated::SseCodec, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "EmbeddingBackendDartImpl_auto_accessor_get_field0",
            port: None,
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_that = <RustOpaqueMoi<
                flutter_rust_bridge::for_generated::RustAutoOpaqueInner<EmbeddingBackendDartImpl>,
            >>::sse_decode(&mut deserializer);
            deserializer.end();
            transform_result_sse::<_, ()>((move || {
                let mut api_that_guard = None;
                let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![
                    flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false),
                ]);
                for i in decode_indices_ {
                    match i {
                        0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()),
                        _ => unreachable!(),
                    }
                }
                let api_that_guard = api_that_guard.unwrap();
                let output_ok = Result::<_, ()>::Ok(api_that_guard.field0.clone())?;
                Ok(output_ok)
            })())
        },
    )
}
fn wire__crate__EmbeddingBackendDartImpl_auto_accessor_set_field0_impl(
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::<flutter_rust_bridge::for_generated::SseCodec, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "EmbeddingBackendDartImpl_auto_accessor_set_field0",
            port: None,
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_that = <RustOpaqueMoi<
                flutter_rust_bridge::for_generated::RustAutoOpaqueInner<EmbeddingBackendDartImpl>,
            >>::sse_decode(&mut deserializer);
            let api_field0 = <Arc<dyn EmbeddingBackend + Send + Sync>>::sse_decode(&mut deserializer);
            deserializer.end();
            transform_result_sse::<_, ()>((move || {
                let mut api_that_guard = None;
                let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![
                    flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true),
                ]);
                for i in decode_indices_ {
                    match i {
                        0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()),
                        _ => unreachable!(),
                    }
                }
                let mut api_that_guard = api_that_guard.unwrap();
                let output_ok = Result::<_, ()>::Ok({
                    {
                        api_that_guard.field0 = api_field0;
                    };
                })?;
                Ok(output_ok)
            })())
        },
    )
}
fn wire__crate__OcrBackendDartImpl_auto_accessor_get_field0_impl(
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::<flutter_rust_bridge::for_generated::SseCodec,_>(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "OcrBackendDartImpl_auto_accessor_get_field0", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { 
            let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_that = <RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<OcrBackendDartImpl>>>::sse_decode(&mut deserializer);deserializer.end();
                transform_result_sse::<_, ()>((move || {
                    let mut api_that_guard = None;
let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]);
        for i in decode_indices_ {
            match i {
                0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()),
                _ => unreachable!(),
            }
        }
        let api_that_guard = api_that_guard.unwrap();
 let output_ok = Result::<_,()>::Ok(api_that_guard.field0.clone())?;   Ok(output_ok)
                })()) })
}
fn wire__crate__OcrBackendDartImpl_auto_accessor_set_field0_impl(
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::<flutter_rust_bridge::for_generated::SseCodec,_>(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "OcrBackendDartImpl_auto_accessor_set_field0", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { 
            let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_that = <RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<OcrBackendDartImpl>>>::sse_decode(&mut deserializer);
let api_field0 = < Arc < dyn OcrBackend + Send + Sync >>::sse_decode(&mut deserializer);deserializer.end();
                transform_result_sse::<_, ()>((move || {
                    let mut api_that_guard = None;
let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]);
        for i in decode_indices_ {
            match i {
                0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()),
                _ => unreachable!(),
            }
        }
        let mut api_that_guard = api_that_guard.unwrap();
 let output_ok = Result::<_,()>::Ok({ { api_that_guard.field0 = api_field0; }; })?;   Ok(output_ok)
                })()) })
}
fn wire__crate__PostProcessorDartImpl_auto_accessor_get_field0_impl(
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::<flutter_rust_bridge::for_generated::SseCodec, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "PostProcessorDartImpl_auto_accessor_get_field0",
            port: None,
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_that = <RustOpaqueMoi<
                flutter_rust_bridge::for_generated::RustAutoOpaqueInner<PostProcessorDartImpl>,
            >>::sse_decode(&mut deserializer);
            deserializer.end();
            transform_result_sse::<_, ()>((move || {
                let mut api_that_guard = None;
                let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![
                    flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false),
                ]);
                for i in decode_indices_ {
                    match i {
                        0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()),
                        _ => unreachable!(),
                    }
                }
                let api_that_guard = api_that_guard.unwrap();
                let output_ok = Result::<_, ()>::Ok(api_that_guard.field0.clone())?;
                Ok(output_ok)
            })())
        },
    )
}
fn wire__crate__PostProcessorDartImpl_auto_accessor_set_field0_impl(
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::<flutter_rust_bridge::for_generated::SseCodec, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "PostProcessorDartImpl_auto_accessor_set_field0",
            port: None,
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_that = <RustOpaqueMoi<
                flutter_rust_bridge::for_generated::RustAutoOpaqueInner<PostProcessorDartImpl>,
            >>::sse_decode(&mut deserializer);
            let api_field0 = <Arc<dyn PostProcessor + Send + Sync>>::sse_decode(&mut deserializer);
            deserializer.end();
            transform_result_sse::<_, ()>((move || {
                let mut api_that_guard = None;
                let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![
                    flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true),
                ]);
                for i in decode_indices_ {
                    match i {
                        0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()),
                        _ => unreachable!(),
                    }
                }
                let mut api_that_guard = api_that_guard.unwrap();
                let output_ok = Result::<_, ()>::Ok({
                    {
                        api_that_guard.field0 = api_field0;
                    };
                })?;
                Ok(output_ok)
            })())
        },
    )
}
fn wire__crate__RendererDartImpl_auto_accessor_get_field0_impl(
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::<flutter_rust_bridge::for_generated::SseCodec, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "RendererDartImpl_auto_accessor_get_field0",
            port: None,
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_that =
                <RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<RendererDartImpl>>>::sse_decode(
                    &mut deserializer,
                );
            deserializer.end();
            transform_result_sse::<_, ()>((move || {
                let mut api_that_guard = None;
                let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![
                    flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false),
                ]);
                for i in decode_indices_ {
                    match i {
                        0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()),
                        _ => unreachable!(),
                    }
                }
                let api_that_guard = api_that_guard.unwrap();
                let output_ok = Result::<_, ()>::Ok(api_that_guard.field0.clone())?;
                Ok(output_ok)
            })())
        },
    )
}
fn wire__crate__RendererDartImpl_auto_accessor_set_field0_impl(
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::<flutter_rust_bridge::for_generated::SseCodec, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "RendererDartImpl_auto_accessor_set_field0",
            port: None,
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_that =
                <RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<RendererDartImpl>>>::sse_decode(
                    &mut deserializer,
                );
            let api_field0 = <Arc<dyn Renderer + Send + Sync>>::sse_decode(&mut deserializer);
            deserializer.end();
            transform_result_sse::<_, ()>((move || {
                let mut api_that_guard = None;
                let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![
                    flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true),
                ]);
                for i in decode_indices_ {
                    match i {
                        0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()),
                        _ => unreachable!(),
                    }
                }
                let mut api_that_guard = api_that_guard.unwrap();
                let output_ok = Result::<_, ()>::Ok({
                    {
                        api_that_guard.field0 = api_field0;
                    };
                })?;
                Ok(output_ok)
            })())
        },
    )
}
fn wire__crate__ValidatorDartImpl_auto_accessor_get_field0_impl(
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::<flutter_rust_bridge::for_generated::SseCodec, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "ValidatorDartImpl_auto_accessor_get_field0",
            port: None,
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_that =
                <RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<ValidatorDartImpl>>>::sse_decode(
                    &mut deserializer,
                );
            deserializer.end();
            transform_result_sse::<_, ()>((move || {
                let mut api_that_guard = None;
                let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![
                    flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false),
                ]);
                for i in decode_indices_ {
                    match i {
                        0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()),
                        _ => unreachable!(),
                    }
                }
                let api_that_guard = api_that_guard.unwrap();
                let output_ok = Result::<_, ()>::Ok(api_that_guard.field0.clone())?;
                Ok(output_ok)
            })())
        },
    )
}
fn wire__crate__ValidatorDartImpl_auto_accessor_set_field0_impl(
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::<flutter_rust_bridge::for_generated::SseCodec, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "ValidatorDartImpl_auto_accessor_set_field0",
            port: None,
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_that =
                <RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<ValidatorDartImpl>>>::sse_decode(
                    &mut deserializer,
                );
            let api_field0 = <Arc<dyn Validator + Send + Sync>>::sse_decode(&mut deserializer);
            deserializer.end();
            transform_result_sse::<_, ()>((move || {
                let mut api_that_guard = None;
                let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![
                    flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true),
                ]);
                for i in decode_indices_ {
                    match i {
                        0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()),
                        _ => unreachable!(),
                    }
                }
                let mut api_that_guard = api_that_guard.unwrap();
                let output_ok = Result::<_, ()>::Ok({
                    {
                        api_that_guard.field0 = api_field0;
                    };
                })?;
                Ok(output_ok)
            })())
        },
    )
}
fn wire__crate__batch_extract_bytes_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_async::<flutter_rust_bridge::for_generated::SseCodec, _, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "batch_extract_bytes",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_items = <Vec<crate::BatchBytesItem>>::sse_decode(&mut deserializer);
            let api_config = <crate::ExtractionConfig>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| async move {
                transform_result_sse::<_, String>(
                    (move || async move {
                        let output_ok = crate::batch_extract_bytes(api_items, api_config).await?;
                        Ok(output_ok)
                    })()
                    .await,
                )
            }
        },
    )
}
fn wire__crate__batch_extract_bytes_sync_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "batch_extract_bytes_sync",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_items = <Vec<crate::BatchBytesItem>>::sse_decode(&mut deserializer);
            let api_config = <crate::ExtractionConfig>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::batch_extract_bytes_sync(api_items, api_config)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__batch_extract_files_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_async::<flutter_rust_bridge::for_generated::SseCodec, _, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "batch_extract_files",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_items = <Vec<crate::BatchFileItem>>::sse_decode(&mut deserializer);
            let api_config = <crate::ExtractionConfig>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| async move {
                transform_result_sse::<_, String>(
                    (move || async move {
                        let output_ok = crate::batch_extract_files(api_items, api_config).await?;
                        Ok(output_ok)
                    })()
                    .await,
                )
            }
        },
    )
}
fn wire__crate__batch_extract_files_sync_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "batch_extract_files_sync",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_items = <Vec<crate::BatchFileItem>>::sse_decode(&mut deserializer);
            let api_config = <crate::ExtractionConfig>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::batch_extract_files_sync(api_items, api_config)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__clear_document_extractors_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "clear_document_extractors",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::clear_document_extractors()?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__clear_embedding_backends_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "clear_embedding_backends",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::clear_embedding_backends()?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__clear_ocr_backends_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "clear_ocr_backends",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::clear_ocr_backends()?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__clear_post_processors_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "clear_post_processors",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::clear_post_processors()?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__clear_renderers_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "clear_renderers",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::clear_renderers()?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__clear_validators_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "clear_validators",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::clear_validators()?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__compare_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "compare",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_a = <crate::ExtractionResult>::sse_decode(&mut deserializer);
            let api_b = <crate::ExtractionResult>::sse_decode(&mut deserializer);
            let api_opts = <crate::DiffOptions>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, ()>((move || {
                    let output_ok = Result::<_, ()>::Ok(crate::compare(api_a, api_b, api_opts))?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_acceleration_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_acceleration_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_acceleration_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_archive_entry_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_archive_entry_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_archive_entry_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_archive_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_archive_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_archive_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_b_box_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_b_box_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_b_box_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_batch_bytes_item_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_batch_bytes_item_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_batch_bytes_item_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_batch_file_item_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_batch_file_item_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_batch_file_item_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_bibtex_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_bibtex_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_bibtex_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_bounding_box_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_bounding_box_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_bounding_box_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_cache_stats_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_cache_stats_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_cache_stats_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_cell_change_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_cell_change_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_cell_change_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_chunk_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_chunk_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_chunk_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_chunk_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_chunk_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_chunk_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_chunking_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_chunking_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_chunking_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_citation_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_citation_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_citation_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_content_filter_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_content_filter_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_content_filter_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_contributor_role_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_contributor_role_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_contributor_role_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_core_properties_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_core_properties_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_core_properties_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_csv_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_csv_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_csv_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_dbf_field_info_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_dbf_field_info_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_dbf_field_info_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_dbf_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_dbf_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_dbf_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_detect_response_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_detect_response_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_detect_response_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_detection_result_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_detection_result_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_detection_result_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_diff_hunk_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_diff_hunk_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_diff_hunk_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_diff_options_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_diff_options_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_diff_options_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_djot_content_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_djot_content_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_djot_content_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_djot_image_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_djot_image_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_djot_image_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_djot_link_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_djot_link_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_djot_link_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_document_extractor_dart_impl_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec,_,_>(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "create_document_extractor_dart_impl", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { 
            let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_plugin_name = <String>::sse_decode(&mut deserializer);
let api_plugin_version = <String>::sse_decode(&mut deserializer);
let api_extract_bytes = decode_DartFn_Inputs_list_prim_u_8_strict_String_extraction_config_Output_internal_document_bridge_AnyhowException(<flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer));
let api_extract_file = decode_DartFn_Inputs_String_String_extraction_config_Output_internal_document_bridge_AnyhowException(<flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer));
let api_supported_mime_types = decode_DartFn_Inputs__Output_list_String_AnyhowException(<flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer));
let api_priority = decode_DartFn_Inputs__Output_i_64_AnyhowException(<flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer));
let api_can_handle = decode_DartFn_Inputs_String_String_Output_bool_AnyhowException(<flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer));deserializer.end(); move |context|  {
                    transform_result_sse::<_, ()>((move ||  {
                         let output_ok = Result::<_,()>::Ok(crate::create_document_extractor_dart_impl(api_plugin_name, api_plugin_version, api_extract_bytes, api_extract_file, api_supported_mime_types, api_priority, api_can_handle))?;   Ok(output_ok)
                    })())
                } })
}
fn wire__crate__create_document_node_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_document_node_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_document_node_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_document_relationship_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_document_relationship_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_document_relationship_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_document_revision_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_document_revision_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_document_revision_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_document_structure_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_document_structure_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_document_structure_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_docx_app_properties_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_docx_app_properties_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_docx_app_properties_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_docx_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_docx_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_docx_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_element_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_element_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_element_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_element_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_element_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_element_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_email_attachment_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_email_attachment_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_email_attachment_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_email_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_email_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_email_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_email_extraction_result_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_email_extraction_result_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_email_extraction_result_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_email_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_email_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_email_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_embedded_changes_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_embedded_changes_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_embedded_changes_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_embedded_diff_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_embedded_diff_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_embedded_diff_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_embedded_file_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_embedded_file_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_embedded_file_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_embedding_backend_dart_impl_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_embedding_backend_dart_impl",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_plugin_name = <String>::sse_decode(&mut deserializer);
            let api_plugin_version = <String>::sse_decode(&mut deserializer);
            let api_dimensions = decode_DartFn_Inputs__Output_i_64_AnyhowException(
                <flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer),
            );
            let api_embed = decode_DartFn_Inputs_list_String_Output_list_list_prim_f_64_strict_AnyhowException(
                <flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer),
            );
            deserializer.end();
            move |context| {
                transform_result_sse::<_, ()>((move || {
                    let output_ok = Result::<_, ()>::Ok(crate::create_embedding_backend_dart_impl(
                        api_plugin_name,
                        api_plugin_version,
                        api_dimensions,
                        api_embed,
                    ))?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_embedding_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_embedding_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_embedding_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_embedding_preset_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_embedding_preset_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_embedding_preset_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_epub_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_epub_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_epub_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_error_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_error_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_error_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_excel_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_excel_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_excel_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_excel_sheet_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_excel_sheet_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_excel_sheet_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_excel_workbook_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_excel_workbook_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_excel_workbook_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_extracted_image_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_extracted_image_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_extracted_image_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_extracted_uri_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_extracted_uri_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_extracted_uri_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_extraction_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_extraction_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_extraction_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_extraction_diff_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_extraction_diff_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_extraction_diff_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_extraction_result_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_extraction_result_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_extraction_result_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_fiction_book_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_fiction_book_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_fiction_book_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_file_extraction_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_file_extraction_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_file_extraction_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_footnote_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_footnote_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_footnote_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_formatted_block_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_formatted_block_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_formatted_block_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_grid_cell_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_grid_cell_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_grid_cell_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_header_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_header_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_header_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_heading_context_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_heading_context_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_heading_context_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_heading_level_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_heading_level_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_heading_level_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_hierarchical_block_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_hierarchical_block_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_hierarchical_block_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_hierarchy_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_hierarchy_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_hierarchy_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_html_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_html_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_html_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_html_output_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_html_output_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_html_output_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_image_extraction_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_image_extraction_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_image_extraction_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_image_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_image_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_image_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_image_metadata_type_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_image_metadata_type_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_image_metadata_type_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_image_preprocessing_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_image_preprocessing_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_image_preprocessing_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_image_preprocessing_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_image_preprocessing_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_image_preprocessing_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_inline_element_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_inline_element_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_inline_element_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_jats_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_jats_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_jats_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_keyword_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_keyword_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_keyword_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_keyword_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_keyword_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_keyword_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_language_detection_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_language_detection_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_language_detection_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_layout_detection_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_layout_detection_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_layout_detection_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_layout_detection_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_layout_detection_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_layout_detection_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_layout_region_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_layout_region_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_layout_region_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_link_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_link_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_link_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_llm_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_llm_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_llm_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_llm_usage_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_llm_usage_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_llm_usage_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_model_paths_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_model_paths_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_model_paths_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_ocr_backend_dart_impl_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_ocr_backend_dart_impl",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_plugin_name = <String>::sse_decode(&mut deserializer);
            let api_plugin_version = <String>::sse_decode(&mut deserializer);
            let api_process_image =
                decode_DartFn_Inputs_list_prim_u_8_strict_ocr_config_Output_extraction_result_AnyhowException(
                    <flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer),
                );
            let api_process_image_file =
                decode_DartFn_Inputs_String_ocr_config_Output_extraction_result_AnyhowException(
                    <flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer),
                );
            let api_supports_language = decode_DartFn_Inputs_String_Output_bool_AnyhowException(
                <flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer),
            );
            let api_backend_type = decode_DartFn_Inputs__Output_ocr_backend_type_AnyhowException(
                <flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer),
            );
            let api_supported_languages = decode_DartFn_Inputs__Output_list_String_AnyhowException(
                <flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer),
            );
            let api_supports_table_detection = decode_DartFn_Inputs__Output_bool_AnyhowException(
                <flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer),
            );
            let api_supports_document_processing = decode_DartFn_Inputs__Output_bool_AnyhowException(
                <flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer),
            );
            let api_process_document = decode_DartFn_Inputs_String_ocr_config_Output_extraction_result_AnyhowException(
                <flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer),
            );
            deserializer.end();
            move |context| {
                transform_result_sse::<_, ()>((move || {
                    let output_ok = Result::<_, ()>::Ok(crate::create_ocr_backend_dart_impl(
                        api_plugin_name,
                        api_plugin_version,
                        api_process_image,
                        api_process_image_file,
                        api_supports_language,
                        api_backend_type,
                        api_supported_languages,
                        api_supports_table_detection,
                        api_supports_document_processing,
                        api_process_document,
                    ))?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_ocr_confidence_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_ocr_confidence_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_ocr_confidence_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_ocr_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_ocr_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_ocr_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_ocr_element_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_ocr_element_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_ocr_element_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_ocr_element_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_ocr_element_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_ocr_element_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_ocr_extraction_result_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_ocr_extraction_result_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_ocr_extraction_result_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_ocr_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_ocr_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_ocr_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_ocr_pipeline_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_ocr_pipeline_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_ocr_pipeline_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_ocr_pipeline_stage_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_ocr_pipeline_stage_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_ocr_pipeline_stage_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_ocr_quality_thresholds_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_ocr_quality_thresholds_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_ocr_quality_thresholds_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_ocr_rotation_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_ocr_rotation_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_ocr_rotation_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_ocr_table_bounding_box_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_ocr_table_bounding_box_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_ocr_table_bounding_box_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_ocr_table_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_ocr_table_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_ocr_table_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_orientation_result_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_orientation_result_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_orientation_result_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_paddle_ocr_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_paddle_ocr_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_paddle_ocr_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_page_boundary_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_page_boundary_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_page_boundary_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_page_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_page_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_page_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_page_content_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_page_content_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_page_content_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_page_hierarchy_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_page_hierarchy_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_page_hierarchy_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_page_info_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_page_info_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_page_info_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_page_structure_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_page_structure_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_page_structure_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_pdf_annotation_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_pdf_annotation_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_pdf_annotation_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_pdf_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_pdf_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_pdf_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_pdf_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_pdf_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_pdf_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_post_processor_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_post_processor_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_post_processor_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_post_processor_dart_impl_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_post_processor_dart_impl",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_plugin_name = <String>::sse_decode(&mut deserializer);
            let api_plugin_version = <String>::sse_decode(&mut deserializer);
            let api_process = decode_DartFn_Inputs_extraction_result_extraction_config_Output_unit_AnyhowException(
                <flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer),
            );
            let api_processing_stage = decode_DartFn_Inputs__Output_processing_stage_AnyhowException(
                <flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer),
            );
            let api_should_process =
                decode_DartFn_Inputs_extraction_result_extraction_config_Output_bool_AnyhowException(
                    <flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer),
                );
            let api_estimated_duration_ms = decode_DartFn_Inputs_extraction_result_Output_i_64_AnyhowException(
                <flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer),
            );
            let api_priority = decode_DartFn_Inputs__Output_i_64_AnyhowException(
                <flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer),
            );
            deserializer.end();
            move |context| {
                transform_result_sse::<_, ()>((move || {
                    let output_ok = Result::<_, ()>::Ok(crate::create_post_processor_dart_impl(
                        api_plugin_name,
                        api_plugin_version,
                        api_process,
                        api_processing_stage,
                        api_should_process,
                        api_estimated_duration_ms,
                        api_priority,
                    ))?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_pptx_app_properties_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_pptx_app_properties_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_pptx_app_properties_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_pptx_extraction_result_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_pptx_extraction_result_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_pptx_extraction_result_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_pptx_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_pptx_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_pptx_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_processing_warning_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_processing_warning_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_processing_warning_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_pst_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_pst_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_pst_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_rake_params_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_rake_params_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_rake_params_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_recognized_table_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_recognized_table_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_recognized_table_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_renderer_dart_impl_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_renderer_dart_impl",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_plugin_name = <String>::sse_decode(&mut deserializer);
            let api_plugin_version = <String>::sse_decode(&mut deserializer);
            let api_render = decode_DartFn_Inputs_internal_document_bridge_Output_String_AnyhowException(
                <flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer),
            );
            deserializer.end();
            move |context| {
                transform_result_sse::<_, ()>((move || {
                    let output_ok = Result::<_, ()>::Ok(crate::create_renderer_dart_impl(
                        api_plugin_name,
                        api_plugin_version,
                        api_render,
                    ))?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_revision_delta_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_revision_delta_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_revision_delta_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_security_limits_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_security_limits_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_security_limits_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_server_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_server_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_server_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_structured_data_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_structured_data_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_structured_data_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_structured_data_result_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_structured_data_result_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_structured_data_result_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_structured_extraction_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_structured_extraction_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_structured_extraction_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_supported_format_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_supported_format_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_supported_format_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_table_cell_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_table_cell_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_table_cell_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_table_diff_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_table_diff_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_table_diff_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_table_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_table_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_table_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_table_grid_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_table_grid_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_table_grid_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_tesseract_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_tesseract_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_tesseract_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_text_annotation_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_text_annotation_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_text_annotation_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_text_extraction_result_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_text_extraction_result_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_text_extraction_result_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_text_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_text_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_text_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_token_reduction_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_token_reduction_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_token_reduction_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_token_reduction_options_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_token_reduction_options_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_token_reduction_options_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_tree_sitter_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_tree_sitter_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_tree_sitter_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_tree_sitter_process_config_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_tree_sitter_process_config_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_tree_sitter_process_config_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_validator_dart_impl_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_validator_dart_impl",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_plugin_name = <String>::sse_decode(&mut deserializer);
            let api_plugin_version = <String>::sse_decode(&mut deserializer);
            let api_validate = decode_DartFn_Inputs_extraction_result_extraction_config_Output_unit_AnyhowException(
                <flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer),
            );
            let api_should_validate =
                decode_DartFn_Inputs_extraction_result_extraction_config_Output_bool_AnyhowException(
                    <flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer),
                );
            let api_priority = decode_DartFn_Inputs__Output_i_64_AnyhowException(
                <flutter_rust_bridge::DartOpaque>::sse_decode(&mut deserializer),
            );
            deserializer.end();
            move |context| {
                transform_result_sse::<_, ()>((move || {
                    let output_ok = Result::<_, ()>::Ok(crate::create_validator_dart_impl(
                        api_plugin_name,
                        api_plugin_version,
                        api_validate,
                        api_should_validate,
                        api_priority,
                    ))?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_xlsx_app_properties_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_xlsx_app_properties_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_xlsx_app_properties_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_xml_extraction_result_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_xml_extraction_result_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_xml_extraction_result_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_xml_metadata_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_xml_metadata_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_xml_metadata_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_yake_params_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_yake_params_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_yake_params_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__create_year_range_from_json_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "create_year_range_from_json",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_json = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::create_year_range_from_json(api_json)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__detect_mime_type_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "detect_mime_type",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_path = <String>::sse_decode(&mut deserializer);
            let api_check_exists = <bool>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::detect_mime_type(api_path, api_check_exists)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__detect_mime_type_from_bytes_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "detect_mime_type_from_bytes",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_content = <Vec<u8>>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::detect_mime_type_from_bytes(api_content)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__embed_texts_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "embed_texts",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_texts = <Vec<String>>::sse_decode(&mut deserializer);
            let api_config = <crate::EmbeddingConfig>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::embed_texts(api_texts, api_config)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__embed_texts_async_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_async::<flutter_rust_bridge::for_generated::SseCodec, _, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "embed_texts_async",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_texts = <Vec<String>>::sse_decode(&mut deserializer);
            let api_config = <crate::EmbeddingConfig>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| async move {
                transform_result_sse::<_, String>(
                    (move || async move {
                        let output_ok = crate::embed_texts_async(api_texts, api_config).await?;
                        Ok(output_ok)
                    })()
                    .await,
                )
            }
        },
    )
}
fn wire__crate__extract_bytes_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_async::<flutter_rust_bridge::for_generated::SseCodec, _, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "extract_bytes",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_content = <Vec<u8>>::sse_decode(&mut deserializer);
            let api_mime_type = <String>::sse_decode(&mut deserializer);
            let api_config = <crate::ExtractionConfig>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| async move {
                transform_result_sse::<_, String>(
                    (move || async move {
                        let output_ok = crate::extract_bytes(api_content, api_mime_type, api_config).await?;
                        Ok(output_ok)
                    })()
                    .await,
                )
            }
        },
    )
}
fn wire__crate__extract_bytes_sync_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "extract_bytes_sync",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_content = <Vec<u8>>::sse_decode(&mut deserializer);
            let api_mime_type = <String>::sse_decode(&mut deserializer);
            let api_config = <crate::ExtractionConfig>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::extract_bytes_sync(api_content, api_mime_type, api_config)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__extract_file_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_async::<flutter_rust_bridge::for_generated::SseCodec, _, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "extract_file",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_path = <String>::sse_decode(&mut deserializer);
            let api_mime_type = <Option<String>>::sse_decode(&mut deserializer);
            let api_config = <crate::ExtractionConfig>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| async move {
                transform_result_sse::<_, String>(
                    (move || async move {
                        let output_ok = crate::extract_file(api_path, api_mime_type, api_config).await?;
                        Ok(output_ok)
                    })()
                    .await,
                )
            }
        },
    )
}
fn wire__crate__extract_file_sync_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "extract_file_sync",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_path = <String>::sse_decode(&mut deserializer);
            let api_mime_type = <Option<String>>::sse_decode(&mut deserializer);
            let api_config = <crate::ExtractionConfig>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::extract_file_sync(api_path, api_mime_type, api_config)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__get_embedding_preset_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "get_embedding_preset",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_name = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, ()>((move || {
                    let output_ok = Result::<_, ()>::Ok(crate::get_embedding_preset(api_name))?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__get_extensions_for_mime_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "get_extensions_for_mime",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_mime_type = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::get_extensions_for_mime(api_mime_type)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__list_document_extractors_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "list_document_extractors",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::list_document_extractors()?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__list_embedding_backends_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "list_embedding_backends",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::list_embedding_backends()?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__list_embedding_presets_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "list_embedding_presets",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, ()>((move || {
                    let output_ok = Result::<_, ()>::Ok(crate::list_embedding_presets())?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__list_ocr_backends_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "list_ocr_backends",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::list_ocr_backends()?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__list_post_processors_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "list_post_processors",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::list_post_processors()?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__list_renderers_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "list_renderers",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::list_renderers()?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__list_validators_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "list_validators",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::list_validators()?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__register_document_extractor_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "register_document_extractor",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_impl_ = <DocumentExtractorDartImpl>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::register_document_extractor(api_impl_)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__register_embedding_backend_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "register_embedding_backend",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_impl_ = <EmbeddingBackendDartImpl>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::register_embedding_backend(api_impl_)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__register_ocr_backend_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "register_ocr_backend",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_impl_ = <OcrBackendDartImpl>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::register_ocr_backend(api_impl_)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__register_post_processor_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "register_post_processor",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_impl_ = <PostProcessorDartImpl>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::register_post_processor(api_impl_)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__register_renderer_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "register_renderer",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_impl_ = <RendererDartImpl>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::register_renderer(api_impl_)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__register_validator_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "register_validator",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_impl_ = <ValidatorDartImpl>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::register_validator(api_impl_)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__render_pdf_page_to_png_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "render_pdf_page_to_png",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_pdf_bytes = <Vec<u8>>::sse_decode(&mut deserializer);
            let api_page_index = <i64>::sse_decode(&mut deserializer);
            let api_dpi = <Option<i64>>::sse_decode(&mut deserializer);
            let api_password = <Option<String>>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok =
                        crate::render_pdf_page_to_png(api_pdf_bytes, api_page_index, api_dpi, api_password)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__unregister_document_extractor_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "unregister_document_extractor",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_name = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::unregister_document_extractor(api_name)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__unregister_embedding_backend_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "unregister_embedding_backend",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_name = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::unregister_embedding_backend(api_name)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__unregister_ocr_backend_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "unregister_ocr_backend",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_name = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::unregister_ocr_backend(api_name)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__unregister_post_processor_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "unregister_post_processor",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_name = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::unregister_post_processor(api_name)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__unregister_renderer_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "unregister_renderer",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_name = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::unregister_renderer(api_name)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}
fn wire__crate__unregister_validator_impl(
    port_: flutter_rust_bridge::for_generated::MessagePort,
    ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len_: i32,
    data_len_: i32,
) {
    FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::SseCodec, _, _>(
        flutter_rust_bridge::for_generated::TaskInfo {
            debug_name: "unregister_validator",
            port: Some(port_),
            mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
        },
        move || {
            let message = unsafe {
                flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_)
            };
            let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
            let api_name = <String>::sse_decode(&mut deserializer);
            deserializer.end();
            move |context| {
                transform_result_sse::<_, String>((move || {
                    let output_ok = crate::unregister_validator(api_name)?;
                    Ok(output_ok)
                })())
            }
        },
    )
}

// Section: static_checks

#[allow(clippy::unnecessary_literal_unwrap)]
const _: fn() = || {
    {
        let AccelerationConfig = None::<crate::AccelerationConfig>.unwrap();
        let _: crate::ExecutionProviderType = AccelerationConfig.provider;
        let _: i64 = AccelerationConfig.device_id;
    }
    match None::<crate::AnnotationKind>.unwrap() {
        crate::AnnotationKind::Bold => {}
        crate::AnnotationKind::Italic => {}
        crate::AnnotationKind::Underline => {}
        crate::AnnotationKind::Strikethrough => {}
        crate::AnnotationKind::Code => {}
        crate::AnnotationKind::Subscript => {}
        crate::AnnotationKind::Superscript => {}
        crate::AnnotationKind::Link { url, title } => {
            let _: String = url;
            let _: String = title;
        }
        crate::AnnotationKind::Highlight => {}
        crate::AnnotationKind::Color { value } => {
            let _: String = value;
        }
        crate::AnnotationKind::FontSize { value } => {
            let _: String = value;
        }
        crate::AnnotationKind::Custom { name, value } => {
            let _: String = name;
            let _: String = value;
        }
    }
    {
        let ArchiveEntry = None::<crate::ArchiveEntry>.unwrap();
        let _: String = ArchiveEntry.path;
        let _: String = ArchiveEntry.mime_type;
        let _: crate::ExtractionResult = ArchiveEntry.result;
    }
    {
        let ArchiveMetadata = None::<crate::ArchiveMetadata>.unwrap();
        let _: String = ArchiveMetadata.format;
        let _: i64 = ArchiveMetadata.file_count;
        let _: Vec<String> = ArchiveMetadata.file_list;
        let _: i64 = ArchiveMetadata.total_size;
        let _: Option<i64> = ArchiveMetadata.compressed_size;
    }
    {
        let BBox = None::<crate::BBox>.unwrap();
        let _: f64 = BBox.x1;
        let _: f64 = BBox.y1;
        let _: f64 = BBox.x2;
        let _: f64 = BBox.y2;
    }
    {
        let BatchBytesItem = None::<crate::BatchBytesItem>.unwrap();
        let _: Vec<u8> = BatchBytesItem.content;
        let _: String = BatchBytesItem.mime_type;
        let _: Option<crate::FileExtractionConfig> = BatchBytesItem.config;
    }
    {
        let BatchFileItem = None::<crate::BatchFileItem>.unwrap();
        let _: String = BatchFileItem.path;
        let _: Option<crate::FileExtractionConfig> = BatchFileItem.config;
    }
    {
        let BibtexMetadata = None::<crate::BibtexMetadata>.unwrap();
        let _: i64 = BibtexMetadata.entry_count;
        let _: Vec<String> = BibtexMetadata.citation_keys;
        let _: Vec<String> = BibtexMetadata.authors;
        let _: Option<crate::YearRange> = BibtexMetadata.year_range;
        let _: Option<std::collections::HashMap<String, i64>> = BibtexMetadata.entry_types;
    }
    {
        let BoundingBox = None::<crate::BoundingBox>.unwrap();
        let _: f64 = BoundingBox.x0;
        let _: f64 = BoundingBox.y0;
        let _: f64 = BoundingBox.x1;
        let _: f64 = BoundingBox.y1;
    }
    {
        let CacheStats = None::<crate::CacheStats>.unwrap();
        let _: i64 = CacheStats.total_files;
        let _: f64 = CacheStats.total_size_mb;
        let _: f64 = CacheStats.available_space_mb;
        let _: f64 = CacheStats.oldest_file_age_days;
        let _: f64 = CacheStats.newest_file_age_days;
    }
    {
        let CellChange = None::<crate::CellChange>.unwrap();
        let _: i64 = CellChange.row;
        let _: i64 = CellChange.col;
        let _: String = CellChange.from;
        let _: String = CellChange.to;
    }
    {
        let Chunk = None::<crate::Chunk>.unwrap();
        let _: String = Chunk.content;
        let _: crate::ChunkType = Chunk.chunk_type;
        let _: Option<Vec<f64>> = Chunk.embedding;
        let _: crate::ChunkMetadata = Chunk.metadata;
    }
    {
        let ChunkMetadata = None::<crate::ChunkMetadata>.unwrap();
        let _: i64 = ChunkMetadata.byte_start;
        let _: i64 = ChunkMetadata.byte_end;
        let _: Option<i64> = ChunkMetadata.token_count;
        let _: i64 = ChunkMetadata.chunk_index;
        let _: i64 = ChunkMetadata.total_chunks;
        let _: Option<i64> = ChunkMetadata.first_page;
        let _: Option<i64> = ChunkMetadata.last_page;
        let _: Option<crate::HeadingContext> = ChunkMetadata.heading_context;
        let _: Vec<i64> = ChunkMetadata.image_indices;
    }
    match None::<crate::ChunkSizing>.unwrap() {
        crate::ChunkSizing::Characters => {}
        crate::ChunkSizing::Tokenizer { model, cache_dir } => {
            let _: String = model;
            let _: String = cache_dir;
        }
    }
    {
        let ChunkingConfig = None::<crate::ChunkingConfig>.unwrap();
        let _: i64 = ChunkingConfig.max_characters;
        let _: i64 = ChunkingConfig.overlap;
        let _: bool = ChunkingConfig.trim;
        let _: crate::ChunkerType = ChunkingConfig.chunker_type;
        let _: Option<crate::EmbeddingConfig> = ChunkingConfig.embedding;
        let _: Option<String> = ChunkingConfig.preset;
        let _: crate::ChunkSizing = ChunkingConfig.sizing;
        let _: bool = ChunkingConfig.prepend_heading_context;
        let _: Option<f64> = ChunkingConfig.topic_threshold;
    }
    {
        let CitationMetadata = None::<crate::CitationMetadata>.unwrap();
        let _: i64 = CitationMetadata.citation_count;
        let _: Option<String> = CitationMetadata.format;
        let _: Vec<String> = CitationMetadata.authors;
        let _: Option<crate::YearRange> = CitationMetadata.year_range;
        let _: Vec<String> = CitationMetadata.dois;
        let _: Vec<String> = CitationMetadata.keywords;
    }
    {
        let ContentFilterConfig = None::<crate::ContentFilterConfig>.unwrap();
        let _: bool = ContentFilterConfig.include_headers;
        let _: bool = ContentFilterConfig.include_footers;
        let _: bool = ContentFilterConfig.strip_repeating_text;
        let _: bool = ContentFilterConfig.include_watermarks;
    }
    {
        let ContributorRole = None::<crate::ContributorRole>.unwrap();
        let _: String = ContributorRole.name;
        let _: Option<String> = ContributorRole.role;
    }
    {
        let CoreProperties = None::<crate::CoreProperties>.unwrap();
        let _: Option<String> = CoreProperties.title;
        let _: Option<String> = CoreProperties.subject;
        let _: Option<String> = CoreProperties.creator;
        let _: Option<String> = CoreProperties.keywords;
        let _: Option<String> = CoreProperties.description;
        let _: Option<String> = CoreProperties.last_modified_by;
        let _: Option<String> = CoreProperties.revision;
        let _: Option<String> = CoreProperties.created;
        let _: Option<String> = CoreProperties.modified;
        let _: Option<String> = CoreProperties.category;
        let _: Option<String> = CoreProperties.content_status;
        let _: Option<String> = CoreProperties.language;
        let _: Option<String> = CoreProperties.identifier;
        let _: Option<String> = CoreProperties.version;
        let _: Option<String> = CoreProperties.last_printed;
    }
    {
        let CsvMetadata = None::<crate::CsvMetadata>.unwrap();
        let _: i64 = CsvMetadata.row_count;
        let _: i64 = CsvMetadata.column_count;
        let _: Option<String> = CsvMetadata.delimiter;
        let _: bool = CsvMetadata.has_header;
        let _: Option<Vec<String>> = CsvMetadata.column_types;
    }
    {
        let DbfFieldInfo = None::<crate::DbfFieldInfo>.unwrap();
        let _: String = DbfFieldInfo.name;
        let _: String = DbfFieldInfo.field_type;
    }
    {
        let DbfMetadata = None::<crate::DbfMetadata>.unwrap();
        let _: i64 = DbfMetadata.record_count;
        let _: i64 = DbfMetadata.field_count;
        let _: Vec<crate::DbfFieldInfo> = DbfMetadata.fields;
    }
    {
        let DetectResponse = None::<crate::DetectResponse>.unwrap();
        let _: String = DetectResponse.mime_type;
        let _: Option<String> = DetectResponse.filename;
    }
    {
        let DetectionResult = None::<crate::DetectionResult>.unwrap();
        let _: i64 = DetectionResult.page_width;
        let _: i64 = DetectionResult.page_height;
        let _: Vec<crate::LayoutDetection> = DetectionResult.detections;
    }
    {
        let DiffHunk = None::<crate::DiffHunk>.unwrap();
        let _: i64 = DiffHunk.from_line;
        let _: i64 = DiffHunk.from_count;
        let _: i64 = DiffHunk.to_line;
        let _: i64 = DiffHunk.to_count;
        let _: Vec<crate::DiffLine> = DiffHunk.lines;
    }
    match None::<crate::DiffLine>.unwrap() {
        crate::DiffLine::Context { field0 } => {
            let _: String = field0;
        }
        crate::DiffLine::Added { field0 } => {
            let _: String = field0;
        }
        crate::DiffLine::Removed { field0 } => {
            let _: String = field0;
        }
    }
    {
        let DiffOptions = None::<crate::DiffOptions>.unwrap();
        let _: bool = DiffOptions.include_metadata;
        let _: bool = DiffOptions.include_embedded;
        let _: Option<i64> = DiffOptions.max_content_chars;
    }
    {
        let DjotContent = None::<crate::DjotContent>.unwrap();
        let _: String = DjotContent.plain_text;
        let _: Vec<crate::FormattedBlock> = DjotContent.blocks;
        let _: crate::Metadata = DjotContent.metadata;
        let _: Vec<crate::Table> = DjotContent.tables;
        let _: Vec<crate::DjotImage> = DjotContent.images;
        let _: Vec<crate::DjotLink> = DjotContent.links;
        let _: Vec<crate::Footnote> = DjotContent.footnotes;
        let _: Vec<String> = DjotContent.attributes;
    }
    {
        let DjotImage = None::<crate::DjotImage>.unwrap();
        let _: String = DjotImage.src;
        let _: String = DjotImage.alt;
        let _: Option<String> = DjotImage.title;
        let _: Option<String> = DjotImage.attributes;
    }
    {
        let DjotLink = None::<crate::DjotLink>.unwrap();
        let _: String = DjotLink.url;
        let _: String = DjotLink.text;
        let _: Option<String> = DjotLink.title;
        let _: Option<String> = DjotLink.attributes;
    }
    {
        let DocumentNode = None::<crate::DocumentNode>.unwrap();
        let _: String = DocumentNode.id;
        let _: crate::NodeContent = DocumentNode.content;
        let _: Option<i64> = DocumentNode.parent;
        let _: Vec<i64> = DocumentNode.children;
        let _: crate::ContentLayer = DocumentNode.content_layer;
        let _: Option<i64> = DocumentNode.page;
        let _: Option<i64> = DocumentNode.page_end;
        let _: Option<crate::BoundingBox> = DocumentNode.bbox;
        let _: Vec<crate::TextAnnotation> = DocumentNode.annotations;
        let _: Option<std::collections::HashMap<String, String>> = DocumentNode.attributes;
    }
    {
        let DocumentRelationship = None::<crate::DocumentRelationship>.unwrap();
        let _: i64 = DocumentRelationship.source;
        let _: i64 = DocumentRelationship.target;
        let _: crate::RelationshipKind = DocumentRelationship.kind;
    }
    {
        let DocumentRevision = None::<crate::DocumentRevision>.unwrap();
        let _: String = DocumentRevision.revision_id;
        let _: Option<String> = DocumentRevision.author;
        let _: Option<String> = DocumentRevision.timestamp;
        let _: crate::RevisionKind = DocumentRevision.kind;
        let _: Option<crate::RevisionAnchor> = DocumentRevision.anchor;
        let _: crate::RevisionDelta = DocumentRevision.delta;
    }
    {
        let DocumentStructure = None::<crate::DocumentStructure>.unwrap();
        let _: Vec<crate::DocumentNode> = DocumentStructure.nodes;
        let _: Option<String> = DocumentStructure.source_format;
        let _: Vec<crate::DocumentRelationship> = DocumentStructure.relationships;
        let _: Vec<String> = DocumentStructure.node_types;
    }
    {
        let DocxAppProperties = None::<crate::DocxAppProperties>.unwrap();
        let _: Option<String> = DocxAppProperties.application;
        let _: Option<String> = DocxAppProperties.app_version;
        let _: Option<String> = DocxAppProperties.template;
        let _: Option<i64> = DocxAppProperties.total_time;
        let _: Option<i64> = DocxAppProperties.pages;
        let _: Option<i64> = DocxAppProperties.words;
        let _: Option<i64> = DocxAppProperties.characters;
        let _: Option<i64> = DocxAppProperties.characters_with_spaces;
        let _: Option<i64> = DocxAppProperties.lines;
        let _: Option<i64> = DocxAppProperties.paragraphs;
        let _: Option<String> = DocxAppProperties.company;
        let _: Option<i64> = DocxAppProperties.doc_security;
        let _: Option<bool> = DocxAppProperties.scale_crop;
        let _: Option<bool> = DocxAppProperties.links_up_to_date;
        let _: Option<bool> = DocxAppProperties.shared_doc;
        let _: Option<bool> = DocxAppProperties.hyperlinks_changed;
    }
    {
        let DocxMetadata = None::<crate::DocxMetadata>.unwrap();
        let _: Option<crate::CoreProperties> = DocxMetadata.core_properties;
        let _: Option<crate::DocxAppProperties> = DocxMetadata.app_properties;
        let _: Option<std::collections::HashMap<String, String>> = DocxMetadata.custom_properties;
    }
    {
        let Element = None::<crate::Element>.unwrap();
        let _: String = Element.element_id;
        let _: crate::ElementType = Element.element_type;
        let _: String = Element.text;
        let _: crate::ElementMetadata = Element.metadata;
    }
    {
        let ElementMetadata = None::<crate::ElementMetadata>.unwrap();
        let _: Option<i64> = ElementMetadata.page_number;
        let _: Option<String> = ElementMetadata.filename;
        let _: Option<crate::BoundingBox> = ElementMetadata.coordinates;
        let _: Option<i64> = ElementMetadata.element_index;
        let _: std::collections::HashMap<String, String> = ElementMetadata.additional;
    }
    {
        let EmailAttachment = None::<crate::EmailAttachment>.unwrap();
        let _: Option<String> = EmailAttachment.name;
        let _: Option<String> = EmailAttachment.filename;
        let _: Option<String> = EmailAttachment.mime_type;
        let _: Option<i64> = EmailAttachment.size;
        let _: bool = EmailAttachment.is_image;
        let _: Option<Vec<u8>> = EmailAttachment.data;
    }
    {
        let EmailConfig = None::<crate::EmailConfig>.unwrap();
        let _: Option<i64> = EmailConfig.msg_fallback_codepage;
    }
    {
        let EmailExtractionResult = None::<crate::EmailExtractionResult>.unwrap();
        let _: Option<String> = EmailExtractionResult.subject;
        let _: Option<String> = EmailExtractionResult.from_email;
        let _: Vec<String> = EmailExtractionResult.to_emails;
        let _: Vec<String> = EmailExtractionResult.cc_emails;
        let _: Vec<String> = EmailExtractionResult.bcc_emails;
        let _: Option<String> = EmailExtractionResult.date;
        let _: Option<String> = EmailExtractionResult.message_id;
        let _: Option<String> = EmailExtractionResult.plain_text;
        let _: Option<String> = EmailExtractionResult.html_content;
        let _: String = EmailExtractionResult.content;
        let _: Vec<crate::EmailAttachment> = EmailExtractionResult.attachments;
        let _: std::collections::HashMap<String, String> = EmailExtractionResult.metadata;
    }
    {
        let EmailMetadata = None::<crate::EmailMetadata>.unwrap();
        let _: Option<String> = EmailMetadata.from_email;
        let _: Option<String> = EmailMetadata.from_name;
        let _: Vec<String> = EmailMetadata.to_emails;
        let _: Vec<String> = EmailMetadata.cc_emails;
        let _: Vec<String> = EmailMetadata.bcc_emails;
        let _: Option<String> = EmailMetadata.message_id;
        let _: Vec<String> = EmailMetadata.attachments;
    }
    {
        let EmbeddedChanges = None::<crate::EmbeddedChanges>.unwrap();
        let _: Vec<crate::ArchiveEntry> = EmbeddedChanges.added;
        let _: Vec<crate::ArchiveEntry> = EmbeddedChanges.removed;
        let _: Vec<crate::EmbeddedDiff> = EmbeddedChanges.changed;
    }
    {
        let EmbeddedDiff = None::<crate::EmbeddedDiff>.unwrap();
        let _: String = EmbeddedDiff.path;
        let _: crate::ExtractionDiff = EmbeddedDiff.diff;
    }
    {
        let EmbeddedFile = None::<crate::EmbeddedFile>.unwrap();
        let _: String = EmbeddedFile.name;
        let _: Vec<u8> = EmbeddedFile.data;
        let _: i64 = EmbeddedFile.compressed_size;
        let _: Option<String> = EmbeddedFile.mime_type;
    }
    {
        let EmbeddingConfig = None::<crate::EmbeddingConfig>.unwrap();
        let _: crate::EmbeddingModelType = EmbeddingConfig.model;
        let _: bool = EmbeddingConfig.normalize;
        let _: i64 = EmbeddingConfig.batch_size;
        let _: bool = EmbeddingConfig.show_download_progress;
        let _: Option<String> = EmbeddingConfig.cache_dir;
        let _: Option<crate::AccelerationConfig> = EmbeddingConfig.acceleration;
        let _: Option<i64> = EmbeddingConfig.max_embed_duration_secs;
    }
    match None::<crate::EmbeddingModelType>.unwrap() {
        crate::EmbeddingModelType::Preset { name } => {
            let _: String = name;
        }
        crate::EmbeddingModelType::Custom { model_id, dimensions } => {
            let _: String = model_id;
            let _: i64 = dimensions;
        }
        crate::EmbeddingModelType::Llm { llm } => {
            let _: crate::LlmConfig = llm;
        }
        crate::EmbeddingModelType::Plugin { name } => {
            let _: String = name;
        }
    }
    {
        let EmbeddingPreset = None::<crate::EmbeddingPreset>.unwrap();
        let _: String = EmbeddingPreset.name;
        let _: i64 = EmbeddingPreset.chunk_size;
        let _: i64 = EmbeddingPreset.overlap;
        let _: String = EmbeddingPreset.model_repo;
        let _: String = EmbeddingPreset.pooling;
        let _: String = EmbeddingPreset.model_file;
        let _: i64 = EmbeddingPreset.dimensions;
        let _: String = EmbeddingPreset.description;
    }
    {
        let EpubMetadata = None::<crate::EpubMetadata>.unwrap();
        let _: Option<String> = EpubMetadata.coverage;
        let _: Option<String> = EpubMetadata.dc_format;
        let _: Option<String> = EpubMetadata.relation;
        let _: Option<String> = EpubMetadata.source;
        let _: Option<String> = EpubMetadata.dc_type;
        let _: Option<String> = EpubMetadata.cover_image;
    }
    {
        let ErrorMetadata = None::<crate::ErrorMetadata>.unwrap();
        let _: String = ErrorMetadata.error_type;
        let _: String = ErrorMetadata.message;
    }
    {
        let ExcelMetadata = None::<crate::ExcelMetadata>.unwrap();
        let _: Option<i64> = ExcelMetadata.sheet_count;
        let _: Option<Vec<String>> = ExcelMetadata.sheet_names;
    }
    {
        let ExcelSheet = None::<crate::ExcelSheet>.unwrap();
        let _: String = ExcelSheet.name;
        let _: String = ExcelSheet.markdown;
        let _: i64 = ExcelSheet.row_count;
        let _: i64 = ExcelSheet.col_count;
        let _: i64 = ExcelSheet.cell_count;
        let _: Option<Vec<Vec<String>>> = ExcelSheet.table_cells;
    }
    {
        let ExcelWorkbook = None::<crate::ExcelWorkbook>.unwrap();
        let _: Vec<crate::ExcelSheet> = ExcelWorkbook.sheets;
        let _: std::collections::HashMap<String, String> = ExcelWorkbook.metadata;
        let _: Option<Vec<crate::DocumentRevision>> = ExcelWorkbook.revisions;
    }
    {
        let ExtractedImage = None::<crate::ExtractedImage>.unwrap();
        let _: Vec<u8> = ExtractedImage.data;
        let _: String = ExtractedImage.format;
        let _: i64 = ExtractedImage.image_index;
        let _: Option<i64> = ExtractedImage.page_number;
        let _: Option<i64> = ExtractedImage.width;
        let _: Option<i64> = ExtractedImage.height;
        let _: Option<String> = ExtractedImage.colorspace;
        let _: Option<i64> = ExtractedImage.bits_per_component;
        let _: bool = ExtractedImage.is_mask;
        let _: Option<String> = ExtractedImage.description;
        let _: Option<crate::ExtractionResult> = ExtractedImage.ocr_result;
        let _: Option<crate::BoundingBox> = ExtractedImage.bounding_box;
        let _: Option<String> = ExtractedImage.source_path;
        let _: Option<crate::ImageKind> = ExtractedImage.image_kind;
        let _: Option<f64> = ExtractedImage.kind_confidence;
        let _: Option<i64> = ExtractedImage.cluster_id;
    }
    {
        let ExtractedUri = None::<crate::ExtractedUri>.unwrap();
        let _: String = ExtractedUri.url;
        let _: Option<String> = ExtractedUri.label;
        let _: Option<i64> = ExtractedUri.page;
        let _: crate::UriKind = ExtractedUri.kind;
    }
    {
        let ExtractionConfig = None::<crate::ExtractionConfig>.unwrap();
        let _: bool = ExtractionConfig.use_cache;
        let _: bool = ExtractionConfig.enable_quality_processing;
        let _: Option<crate::OcrConfig> = ExtractionConfig.ocr;
        let _: bool = ExtractionConfig.force_ocr;
        let _: Option<Vec<i64>> = ExtractionConfig.force_ocr_pages;
        let _: bool = ExtractionConfig.disable_ocr;
        let _: Option<crate::ChunkingConfig> = ExtractionConfig.chunking;
        let _: Option<crate::ContentFilterConfig> = ExtractionConfig.content_filter;
        let _: Option<crate::ImageExtractionConfig> = ExtractionConfig.images;
        let _: Option<crate::PdfConfig> = ExtractionConfig.pdf_options;
        let _: Option<crate::TokenReductionOptions> = ExtractionConfig.token_reduction;
        let _: Option<crate::LanguageDetectionConfig> = ExtractionConfig.language_detection;
        let _: Option<crate::PageConfig> = ExtractionConfig.pages;
        let _: Option<crate::KeywordConfig> = ExtractionConfig.keywords;
        let _: Option<crate::PostProcessorConfig> = ExtractionConfig.postprocessor;
        let _: Option<String> = ExtractionConfig.html_options;
        let _: Option<crate::HtmlOutputConfig> = ExtractionConfig.html_output;
        let _: Option<i64> = ExtractionConfig.extraction_timeout_secs;
        let _: Option<i64> = ExtractionConfig.max_concurrent_extractions;
        let _: crate::ResultFormat = ExtractionConfig.result_format;
        let _: Option<crate::SecurityLimits> = ExtractionConfig.security_limits;
        let _: Option<i64> = ExtractionConfig.max_embedded_file_bytes;
        let _: crate::OutputFormat = ExtractionConfig.output_format;
        let _: Option<crate::LayoutDetectionConfig> = ExtractionConfig.layout;
        let _: bool = ExtractionConfig.use_layout_for_markdown;
        let _: bool = ExtractionConfig.include_document_structure;
        let _: Option<crate::AccelerationConfig> = ExtractionConfig.acceleration;
        let _: Option<String> = ExtractionConfig.cache_namespace;
        let _: Option<i64> = ExtractionConfig.cache_ttl_secs;
        let _: Option<crate::EmailConfig> = ExtractionConfig.email;
        let _: Option<String> = ExtractionConfig.concurrency;
        let _: i64 = ExtractionConfig.max_archive_depth;
        let _: Option<crate::TreeSitterConfig> = ExtractionConfig.tree_sitter;
        let _: Option<crate::StructuredExtractionConfig> = ExtractionConfig.structured_extraction;
        let _: Option<String> = ExtractionConfig.cancel_token;
    }
    {
        let ExtractionDiff = None::<crate::ExtractionDiff>.unwrap();
        let _: Vec<crate::DiffHunk> = ExtractionDiff.content_diff;
        let _: Vec<crate::Table> = ExtractionDiff.tables_added;
        let _: Vec<crate::Table> = ExtractionDiff.tables_removed;
        let _: Vec<crate::TableDiff> = ExtractionDiff.tables_changed;
        let _: String = ExtractionDiff.metadata_changed;
        let _: crate::EmbeddedChanges = ExtractionDiff.embedded_changes;
    }
    {
        let ExtractionResult = None::<crate::ExtractionResult>.unwrap();
        let _: String = ExtractionResult.content;
        let _: String = ExtractionResult.mime_type;
        let _: crate::Metadata = ExtractionResult.metadata;
        let _: Option<crate::ExtractionMethod> = ExtractionResult.extraction_method;
        let _: Vec<crate::Table> = ExtractionResult.tables;
        let _: Option<Vec<String>> = ExtractionResult.detected_languages;
        let _: Option<Vec<crate::Chunk>> = ExtractionResult.chunks;
        let _: Option<Vec<crate::ExtractedImage>> = ExtractionResult.images;
        let _: Option<Vec<crate::PageContent>> = ExtractionResult.pages;
        let _: Option<Vec<crate::Element>> = ExtractionResult.elements;
        let _: Option<crate::DjotContent> = ExtractionResult.djot_content;
        let _: Option<Vec<crate::OcrElement>> = ExtractionResult.ocr_elements;
        let _: Option<crate::DocumentStructure> = ExtractionResult.document;
        let _: Option<Vec<crate::Keyword>> = ExtractionResult.extracted_keywords;
        let _: Option<f64> = ExtractionResult.quality_score;
        let _: Vec<crate::ProcessingWarning> = ExtractionResult.processing_warnings;
        let _: Option<Vec<crate::PdfAnnotation>> = ExtractionResult.annotations;
        let _: Option<Vec<crate::ArchiveEntry>> = ExtractionResult.children;
        let _: Option<Vec<crate::ExtractedUri>> = ExtractionResult.uris;
        let _: Option<Vec<crate::DocumentRevision>> = ExtractionResult.revisions;
        let _: Option<String> = ExtractionResult.structured_output;
        let _: Option<String> = ExtractionResult.code_intelligence;
        let _: Option<Vec<crate::LlmUsage>> = ExtractionResult.llm_usage;
        let _: Option<String> = ExtractionResult.formatted_content;
        let _: Option<String> = ExtractionResult.ocr_internal_document;
    }
    {
        let FictionBookMetadata = None::<crate::FictionBookMetadata>.unwrap();
        let _: Vec<String> = FictionBookMetadata.genres;
        let _: Vec<String> = FictionBookMetadata.sequences;
        let _: Option<String> = FictionBookMetadata.annotation;
    }
    {
        let FileExtractionConfig = None::<crate::FileExtractionConfig>.unwrap();
        let _: Option<bool> = FileExtractionConfig.enable_quality_processing;
        let _: Option<crate::OcrConfig> = FileExtractionConfig.ocr;
        let _: Option<bool> = FileExtractionConfig.force_ocr;
        let _: Option<Vec<i64>> = FileExtractionConfig.force_ocr_pages;
        let _: Option<bool> = FileExtractionConfig.disable_ocr;
        let _: Option<crate::ChunkingConfig> = FileExtractionConfig.chunking;
        let _: Option<crate::ContentFilterConfig> = FileExtractionConfig.content_filter;
        let _: Option<crate::ImageExtractionConfig> = FileExtractionConfig.images;
        let _: Option<crate::PdfConfig> = FileExtractionConfig.pdf_options;
        let _: Option<crate::TokenReductionOptions> = FileExtractionConfig.token_reduction;
        let _: Option<crate::LanguageDetectionConfig> = FileExtractionConfig.language_detection;
        let _: Option<crate::PageConfig> = FileExtractionConfig.pages;
        let _: Option<crate::KeywordConfig> = FileExtractionConfig.keywords;
        let _: Option<crate::PostProcessorConfig> = FileExtractionConfig.postprocessor;
        let _: Option<String> = FileExtractionConfig.html_options;
        let _: Option<crate::ResultFormat> = FileExtractionConfig.result_format;
        let _: Option<crate::OutputFormat> = FileExtractionConfig.output_format;
        let _: Option<bool> = FileExtractionConfig.include_document_structure;
        let _: Option<crate::LayoutDetectionConfig> = FileExtractionConfig.layout;
        let _: Option<i64> = FileExtractionConfig.timeout_secs;
        let _: Option<crate::TreeSitterConfig> = FileExtractionConfig.tree_sitter;
        let _: Option<crate::StructuredExtractionConfig> = FileExtractionConfig.structured_extraction;
    }
    {
        let Footnote = None::<crate::Footnote>.unwrap();
        let _: String = Footnote.label;
        let _: Vec<crate::FormattedBlock> = Footnote.content;
    }
    match None::<crate::FormatMetadata>.unwrap() {
        crate::FormatMetadata::Pdf { field0 } => {
            let _: crate::PdfMetadata = field0;
        }
        crate::FormatMetadata::Docx { field0 } => {
            let _: crate::DocxMetadata = field0;
        }
        crate::FormatMetadata::Excel { field0 } => {
            let _: crate::ExcelMetadata = field0;
        }
        crate::FormatMetadata::Email { field0 } => {
            let _: crate::EmailMetadata = field0;
        }
        crate::FormatMetadata::Pptx { field0 } => {
            let _: crate::PptxMetadata = field0;
        }
        crate::FormatMetadata::Archive { field0 } => {
            let _: crate::ArchiveMetadata = field0;
        }
        crate::FormatMetadata::Image { field0 } => {
            let _: crate::ImageMetadata = field0;
        }
        crate::FormatMetadata::Xml { field0 } => {
            let _: crate::XmlMetadata = field0;
        }
        crate::FormatMetadata::Text { field0 } => {
            let _: crate::TextMetadata = field0;
        }
        crate::FormatMetadata::Html { field0 } => {
            let _: crate::HtmlMetadata = field0;
        }
        crate::FormatMetadata::Ocr { field0 } => {
            let _: crate::OcrMetadata = field0;
        }
        crate::FormatMetadata::Csv { field0 } => {
            let _: crate::CsvMetadata = field0;
        }
        crate::FormatMetadata::Bibtex { field0 } => {
            let _: crate::BibtexMetadata = field0;
        }
        crate::FormatMetadata::Citation { field0 } => {
            let _: crate::CitationMetadata = field0;
        }
        crate::FormatMetadata::FictionBook { field0 } => {
            let _: crate::FictionBookMetadata = field0;
        }
        crate::FormatMetadata::Dbf { field0 } => {
            let _: crate::DbfMetadata = field0;
        }
        crate::FormatMetadata::Jats { field0 } => {
            let _: crate::JatsMetadata = field0;
        }
        crate::FormatMetadata::Epub { field0 } => {
            let _: crate::EpubMetadata = field0;
        }
        crate::FormatMetadata::Pst { field0 } => {
            let _: crate::PstMetadata = field0;
        }
        crate::FormatMetadata::Code { field0 } => {
            let _: String = field0;
        }
    }
    {
        let FormattedBlock = None::<crate::FormattedBlock>.unwrap();
        let _: crate::BlockType = FormattedBlock.block_type;
        let _: Option<i64> = FormattedBlock.level;
        let _: Vec<crate::InlineElement> = FormattedBlock.inline_content;
        let _: Option<String> = FormattedBlock.attributes;
        let _: Option<String> = FormattedBlock.language;
        let _: Option<String> = FormattedBlock.code;
        let _: Vec<crate::FormattedBlock> = FormattedBlock.children;
    }
    {
        let GridCell = None::<crate::GridCell>.unwrap();
        let _: String = GridCell.content;
        let _: i64 = GridCell.row;
        let _: i64 = GridCell.col;
        let _: i64 = GridCell.row_span;
        let _: i64 = GridCell.col_span;
        let _: bool = GridCell.is_header;
        let _: Option<crate::BoundingBox> = GridCell.bbox;
    }
    {
        let HeaderMetadata = None::<crate::HeaderMetadata>.unwrap();
        let _: i64 = HeaderMetadata.level;
        let _: String = HeaderMetadata.text;
        let _: Option<String> = HeaderMetadata.id;
        let _: i64 = HeaderMetadata.depth;
        let _: i64 = HeaderMetadata.html_offset;
    }
    {
        let HeadingContext = None::<crate::HeadingContext>.unwrap();
        let _: Vec<crate::HeadingLevel> = HeadingContext.headings;
    }
    {
        let HeadingLevel = None::<crate::HeadingLevel>.unwrap();
        let _: i64 = HeadingLevel.level;
        let _: String = HeadingLevel.text;
    }
    {
        let HierarchicalBlock = None::<crate::HierarchicalBlock>.unwrap();
        let _: String = HierarchicalBlock.text;
        let _: f64 = HierarchicalBlock.font_size;
        let _: String = HierarchicalBlock.level;
        let _: Option<Vec<f64>> = HierarchicalBlock.bbox;
    }
    {
        let HierarchyConfig = None::<crate::HierarchyConfig>.unwrap();
        let _: bool = HierarchyConfig.enabled;
        let _: i64 = HierarchyConfig.k_clusters;
        let _: bool = HierarchyConfig.include_bbox;
        let _: Option<f64> = HierarchyConfig.ocr_coverage_threshold;
    }
    {
        let HtmlMetadata = None::<crate::HtmlMetadata>.unwrap();
        let _: Option<String> = HtmlMetadata.title;
        let _: Option<String> = HtmlMetadata.description;
        let _: Vec<String> = HtmlMetadata.keywords;
        let _: Option<String> = HtmlMetadata.author;
        let _: Option<String> = HtmlMetadata.canonical_url;
        let _: Option<String> = HtmlMetadata.base_href;
        let _: Option<String> = HtmlMetadata.language;
        let _: Option<crate::TextDirection> = HtmlMetadata.text_direction;
        let _: std::collections::HashMap<String, String> = HtmlMetadata.open_graph;
        let _: std::collections::HashMap<String, String> = HtmlMetadata.twitter_card;
        let _: std::collections::HashMap<String, String> = HtmlMetadata.meta_tags;
        let _: Vec<crate::HeaderMetadata> = HtmlMetadata.headers;
        let _: Vec<crate::LinkMetadata> = HtmlMetadata.links;
        let _: Vec<crate::ImageMetadataType> = HtmlMetadata.images;
        let _: Vec<crate::StructuredData> = HtmlMetadata.structured_data;
    }
    {
        let HtmlOutputConfig = None::<crate::HtmlOutputConfig>.unwrap();
        let _: Option<String> = HtmlOutputConfig.css;
        let _: Option<String> = HtmlOutputConfig.css_file;
        let _: crate::HtmlTheme = HtmlOutputConfig.theme;
        let _: String = HtmlOutputConfig.class_prefix;
        let _: bool = HtmlOutputConfig.embed_css;
    }
    {
        let ImageExtractionConfig = None::<crate::ImageExtractionConfig>.unwrap();
        let _: bool = ImageExtractionConfig.extract_images;
        let _: i64 = ImageExtractionConfig.target_dpi;
        let _: i64 = ImageExtractionConfig.max_image_dimension;
        let _: bool = ImageExtractionConfig.inject_placeholders;
        let _: bool = ImageExtractionConfig.auto_adjust_dpi;
        let _: i64 = ImageExtractionConfig.min_dpi;
        let _: i64 = ImageExtractionConfig.max_dpi;
        let _: Option<i64> = ImageExtractionConfig.max_images_per_page;
        let _: bool = ImageExtractionConfig.classify;
        let _: bool = ImageExtractionConfig.include_page_rasters;
        let _: bool = ImageExtractionConfig.run_ocr_on_images;
        let _: bool = ImageExtractionConfig.ocr_text_only;
        let _: bool = ImageExtractionConfig.append_ocr_text;
    }
    {
        let ImageMetadata = None::<crate::ImageMetadata>.unwrap();
        let _: i64 = ImageMetadata.width;
        let _: i64 = ImageMetadata.height;
        let _: String = ImageMetadata.format;
        let _: std::collections::HashMap<String, String> = ImageMetadata.exif;
    }
    {
        let ImageMetadataType = None::<crate::ImageMetadataType>.unwrap();
        let _: String = ImageMetadataType.src;
        let _: Option<String> = ImageMetadataType.alt;
        let _: Option<String> = ImageMetadataType.title;
        let _: Option<Vec<i64>> = ImageMetadataType.dimensions;
        let _: crate::ImageType = ImageMetadataType.image_type;
        let _: Vec<Vec<String>> = ImageMetadataType.attributes;
    }
    {
        let ImagePreprocessingConfig = None::<crate::ImagePreprocessingConfig>.unwrap();
        let _: i64 = ImagePreprocessingConfig.target_dpi;
        let _: bool = ImagePreprocessingConfig.auto_rotate;
        let _: bool = ImagePreprocessingConfig.deskew;
        let _: bool = ImagePreprocessingConfig.denoise;
        let _: bool = ImagePreprocessingConfig.contrast_enhance;
        let _: String = ImagePreprocessingConfig.binarization_method;
        let _: bool = ImagePreprocessingConfig.invert_colors;
    }
    {
        let ImagePreprocessingMetadata = None::<crate::ImagePreprocessingMetadata>.unwrap();
        let _: Vec<i64> = ImagePreprocessingMetadata.original_dimensions;
        let _: Vec<f64> = ImagePreprocessingMetadata.original_dpi;
        let _: i64 = ImagePreprocessingMetadata.target_dpi;
        let _: f64 = ImagePreprocessingMetadata.scale_factor;
        let _: bool = ImagePreprocessingMetadata.auto_adjusted;
        let _: i64 = ImagePreprocessingMetadata.final_dpi;
        let _: Option<Vec<i64>> = ImagePreprocessingMetadata.new_dimensions;
        let _: String = ImagePreprocessingMetadata.resample_method;
        let _: bool = ImagePreprocessingMetadata.dimension_clamped;
        let _: Option<i64> = ImagePreprocessingMetadata.calculated_dpi;
        let _: bool = ImagePreprocessingMetadata.skipped_resize;
        let _: Option<String> = ImagePreprocessingMetadata.resize_error;
    }
    {
        let InlineElement = None::<crate::InlineElement>.unwrap();
        let _: crate::InlineType = InlineElement.element_type;
        let _: String = InlineElement.content;
        let _: Option<String> = InlineElement.attributes;
        let _: Option<std::collections::HashMap<String, String>> = InlineElement.metadata;
    }
    {
        let JatsMetadata = None::<crate::JatsMetadata>.unwrap();
        let _: Option<String> = JatsMetadata.copyright;
        let _: Option<String> = JatsMetadata.license;
        let _: std::collections::HashMap<String, String> = JatsMetadata.history_dates;
        let _: Vec<crate::ContributorRole> = JatsMetadata.contributor_roles;
    }
    {
        let Keyword = None::<crate::Keyword>.unwrap();
        let _: String = Keyword.text;
        let _: f64 = Keyword.score;
        let _: crate::KeywordAlgorithm = Keyword.algorithm;
        let _: Option<Vec<i64>> = Keyword.positions;
    }
    {
        let KeywordConfig = None::<crate::KeywordConfig>.unwrap();
        let _: crate::KeywordAlgorithm = KeywordConfig.algorithm;
        let _: i64 = KeywordConfig.max_keywords;
        let _: f64 = KeywordConfig.min_score;
        let _: Vec<i64> = KeywordConfig.ngram_range;
        let _: Option<String> = KeywordConfig.language;
        let _: Option<crate::YakeParams> = KeywordConfig.yake_params;
        let _: Option<crate::RakeParams> = KeywordConfig.rake_params;
    }
    {
        let LanguageDetectionConfig = None::<crate::LanguageDetectionConfig>.unwrap();
        let _: bool = LanguageDetectionConfig.enabled;
        let _: f64 = LanguageDetectionConfig.min_confidence;
        let _: bool = LanguageDetectionConfig.detect_multiple;
    }
    {
        let LayoutDetection = None::<crate::LayoutDetection>.unwrap();
        let _: crate::LayoutClass = LayoutDetection.class_name;
        let _: f64 = LayoutDetection.confidence;
        let _: crate::BBox = LayoutDetection.bbox;
    }
    {
        let LayoutDetectionConfig = None::<crate::LayoutDetectionConfig>.unwrap();
        let _: Option<f64> = LayoutDetectionConfig.confidence_threshold;
        let _: bool = LayoutDetectionConfig.apply_heuristics;
        let _: crate::TableModel = LayoutDetectionConfig.table_model;
        let _: Option<crate::AccelerationConfig> = LayoutDetectionConfig.acceleration;
    }
    {
        let LayoutRegion = None::<crate::LayoutRegion>.unwrap();
        let _: String = LayoutRegion.class_name;
        let _: f64 = LayoutRegion.confidence;
        let _: crate::BoundingBox = LayoutRegion.bounding_box;
        let _: f64 = LayoutRegion.area_fraction;
    }
    {
        let LinkMetadata = None::<crate::LinkMetadata>.unwrap();
        let _: String = LinkMetadata.href;
        let _: String = LinkMetadata.text;
        let _: Option<String> = LinkMetadata.title;
        let _: crate::LinkType = LinkMetadata.link_type;
        let _: Vec<String> = LinkMetadata.rel;
        let _: Vec<Vec<String>> = LinkMetadata.attributes;
    }
    {
        let LlmConfig = None::<crate::LlmConfig>.unwrap();
        let _: String = LlmConfig.model;
        let _: Option<String> = LlmConfig.api_key;
        let _: Option<String> = LlmConfig.base_url;
        let _: Option<i64> = LlmConfig.timeout_secs;
        let _: Option<i64> = LlmConfig.max_retries;
        let _: Option<f64> = LlmConfig.temperature;
        let _: Option<i64> = LlmConfig.max_tokens;
    }
    {
        let LlmUsage = None::<crate::LlmUsage>.unwrap();
        let _: String = LlmUsage.model;
        let _: String = LlmUsage.source;
        let _: Option<i64> = LlmUsage.input_tokens;
        let _: Option<i64> = LlmUsage.output_tokens;
        let _: Option<i64> = LlmUsage.total_tokens;
        let _: Option<f64> = LlmUsage.estimated_cost;
        let _: Option<String> = LlmUsage.finish_reason;
    }
    {
        let Metadata = None::<crate::Metadata>.unwrap();
        let _: Option<String> = Metadata.title;
        let _: Option<String> = Metadata.subject;
        let _: Option<Vec<String>> = Metadata.authors;
        let _: Option<Vec<String>> = Metadata.keywords;
        let _: Option<String> = Metadata.language;
        let _: Option<String> = Metadata.created_at;
        let _: Option<String> = Metadata.modified_at;
        let _: Option<String> = Metadata.created_by;
        let _: Option<String> = Metadata.modified_by;
        let _: Option<crate::PageStructure> = Metadata.pages;
        let _: Option<crate::FormatMetadata> = Metadata.format;
        let _: Option<crate::ImagePreprocessingMetadata> = Metadata.image_preprocessing;
        let _: Option<String> = Metadata.json_schema;
        let _: Option<crate::ErrorMetadata> = Metadata.error;
        let _: Option<i64> = Metadata.extraction_duration_ms;
        let _: Option<String> = Metadata.category;
        let _: Option<Vec<String>> = Metadata.tags;
        let _: Option<String> = Metadata.document_version;
        let _: Option<String> = Metadata.abstract_text;
        let _: Option<String> = Metadata.output_format;
        let _: bool = Metadata.ocr_used;
        let _: std::collections::HashMap<String, String> = Metadata.additional;
    }
    {
        let ModelPaths = None::<crate::ModelPaths>.unwrap();
        let _: String = ModelPaths.det_model;
        let _: String = ModelPaths.cls_model;
        let _: String = ModelPaths.rec_model;
        let _: String = ModelPaths.dict_file;
    }
    match None::<crate::NodeContent>.unwrap() {
        crate::NodeContent::Title { text } => {
            let _: String = text;
        }
        crate::NodeContent::Heading { level, text } => {
            let _: i64 = level;
            let _: String = text;
        }
        crate::NodeContent::Paragraph { text } => {
            let _: String = text;
        }
        crate::NodeContent::List { ordered } => {
            let _: bool = ordered;
        }
        crate::NodeContent::ListItem { text } => {
            let _: String = text;
        }
        crate::NodeContent::Table { grid } => {
            let _: crate::TableGrid = grid;
        }
        crate::NodeContent::Image {
            description,
            image_index,
            src,
        } => {
            let _: String = description;
            let _: i64 = image_index;
            let _: String = src;
        }
        crate::NodeContent::Code { text, language } => {
            let _: String = text;
            let _: String = language;
        }
        crate::NodeContent::Quote => {}
        crate::NodeContent::Formula { text } => {
            let _: String = text;
        }
        crate::NodeContent::Footnote { text } => {
            let _: String = text;
        }
        crate::NodeContent::Group {
            label,
            heading_level,
            heading_text,
        } => {
            let _: String = label;
            let _: i64 = heading_level;
            let _: String = heading_text;
        }
        crate::NodeContent::PageBreak => {}
        crate::NodeContent::Slide { number, title } => {
            let _: i64 = number;
            let _: String = title;
        }
        crate::NodeContent::DefinitionList => {}
        crate::NodeContent::DefinitionItem { term, definition } => {
            let _: String = term;
            let _: String = definition;
        }
        crate::NodeContent::Citation { key, text } => {
            let _: String = key;
            let _: String = text;
        }
        crate::NodeContent::Admonition { kind, title } => {
            let _: String = kind;
            let _: String = title;
        }
        crate::NodeContent::RawBlock { format, content } => {
            let _: String = format;
            let _: String = content;
        }
        crate::NodeContent::MetadataBlock { entries } => {
            let _: Vec<Vec<String>> = entries;
        }
    }
    match None::<crate::OcrBoundingGeometry>.unwrap() {
        crate::OcrBoundingGeometry::Rectangle {
            left,
            top,
            width,
            height,
        } => {
            let _: i64 = left;
            let _: i64 = top;
            let _: i64 = width;
            let _: i64 = height;
        }
        crate::OcrBoundingGeometry::Quadrilateral { points } => {
            let _: String = points;
        }
    }
    {
        let OcrConfidence = None::<crate::OcrConfidence>.unwrap();
        let _: Option<f64> = OcrConfidence.detection;
        let _: f64 = OcrConfidence.recognition;
    }
    {
        let OcrConfig = None::<crate::OcrConfig>.unwrap();
        let _: bool = OcrConfig.enabled;
        let _: String = OcrConfig.backend;
        let _: String = OcrConfig.language;
        let _: Option<crate::TesseractConfig> = OcrConfig.tesseract_config;
        let _: Option<crate::OutputFormat> = OcrConfig.output_format;
        let _: Option<String> = OcrConfig.paddle_ocr_config;
        let _: Option<String> = OcrConfig.backend_options;
        let _: Option<crate::OcrElementConfig> = OcrConfig.element_config;
        let _: Option<crate::OcrQualityThresholds> = OcrConfig.quality_thresholds;
        let _: Option<crate::OcrPipelineConfig> = OcrConfig.pipeline;
        let _: bool = OcrConfig.auto_rotate;
        let _: Option<crate::LlmConfig> = OcrConfig.vlm_config;
        let _: Option<String> = OcrConfig.vlm_prompt;
        let _: Option<crate::AccelerationConfig> = OcrConfig.acceleration;
        let _: Option<std::collections::HashMap<String, Vec<u8>>> = OcrConfig.tessdata_bytes;
    }
    {
        let OcrElement = None::<crate::OcrElement>.unwrap();
        let _: String = OcrElement.text;
        let _: crate::OcrBoundingGeometry = OcrElement.geometry;
        let _: crate::OcrConfidence = OcrElement.confidence;
        let _: crate::OcrElementLevel = OcrElement.level;
        let _: Option<crate::OcrRotation> = OcrElement.rotation;
        let _: i64 = OcrElement.page_number;
        let _: Option<String> = OcrElement.parent_id;
        let _: std::collections::HashMap<String, String> = OcrElement.backend_metadata;
    }
    {
        let OcrElementConfig = None::<crate::OcrElementConfig>.unwrap();
        let _: bool = OcrElementConfig.include_elements;
        let _: crate::OcrElementLevel = OcrElementConfig.min_level;
        let _: f64 = OcrElementConfig.min_confidence;
        let _: bool = OcrElementConfig.build_hierarchy;
    }
    {
        let OcrExtractionResult = None::<crate::OcrExtractionResult>.unwrap();
        let _: String = OcrExtractionResult.content;
        let _: String = OcrExtractionResult.mime_type;
        let _: std::collections::HashMap<String, String> = OcrExtractionResult.metadata;
        let _: Vec<crate::OcrTable> = OcrExtractionResult.tables;
        let _: Option<Vec<crate::OcrElement>> = OcrExtractionResult.ocr_elements;
        let _: Option<String> = OcrExtractionResult.internal_document;
    }
    {
        let OcrMetadata = None::<crate::OcrMetadata>.unwrap();
        let _: String = OcrMetadata.language;
        let _: i64 = OcrMetadata.psm;
        let _: String = OcrMetadata.output_format;
        let _: i64 = OcrMetadata.table_count;
        let _: Option<i64> = OcrMetadata.table_rows;
        let _: Option<i64> = OcrMetadata.table_cols;
    }
    {
        let OcrPipelineConfig = None::<crate::OcrPipelineConfig>.unwrap();
        let _: Vec<crate::OcrPipelineStage> = OcrPipelineConfig.stages;
        let _: crate::OcrQualityThresholds = OcrPipelineConfig.quality_thresholds;
    }
    {
        let OcrPipelineStage = None::<crate::OcrPipelineStage>.unwrap();
        let _: String = OcrPipelineStage.backend;
        let _: i64 = OcrPipelineStage.priority;
        let _: Option<String> = OcrPipelineStage.language;
        let _: Option<crate::TesseractConfig> = OcrPipelineStage.tesseract_config;
        let _: Option<String> = OcrPipelineStage.paddle_ocr_config;
        let _: Option<crate::LlmConfig> = OcrPipelineStage.vlm_config;
        let _: Option<String> = OcrPipelineStage.backend_options;
    }
    {
        let OcrQualityThresholds = None::<crate::OcrQualityThresholds>.unwrap();
        let _: i64 = OcrQualityThresholds.min_total_non_whitespace;
        let _: f64 = OcrQualityThresholds.min_non_whitespace_per_page;
        let _: i64 = OcrQualityThresholds.min_meaningful_word_len;
        let _: i64 = OcrQualityThresholds.min_meaningful_words;
        let _: f64 = OcrQualityThresholds.min_alnum_ratio;
        let _: i64 = OcrQualityThresholds.min_garbage_chars;
        let _: f64 = OcrQualityThresholds.max_fragmented_word_ratio;
        let _: f64 = OcrQualityThresholds.critical_fragmented_word_ratio;
        let _: f64 = OcrQualityThresholds.min_avg_word_length;
        let _: i64 = OcrQualityThresholds.min_words_for_avg_length_check;
        let _: f64 = OcrQualityThresholds.min_consecutive_repeat_ratio;
        let _: i64 = OcrQualityThresholds.min_words_for_repeat_check;
        let _: i64 = OcrQualityThresholds.substantive_min_chars;
        let _: i64 = OcrQualityThresholds.non_text_min_chars;
        let _: f64 = OcrQualityThresholds.alnum_ws_ratio_threshold;
        let _: f64 = OcrQualityThresholds.pipeline_min_quality;
    }
    {
        let OcrRotation = None::<crate::OcrRotation>.unwrap();
        let _: f64 = OcrRotation.angle_degrees;
        let _: Option<f64> = OcrRotation.confidence;
    }
    {
        let OcrTable = None::<crate::OcrTable>.unwrap();
        let _: Vec<Vec<String>> = OcrTable.cells;
        let _: String = OcrTable.markdown;
        let _: i64 = OcrTable.page_number;
        let _: Option<crate::OcrTableBoundingBox> = OcrTable.bounding_box;
    }
    {
        let OcrTableBoundingBox = None::<crate::OcrTableBoundingBox>.unwrap();
        let _: i64 = OcrTableBoundingBox.left;
        let _: i64 = OcrTableBoundingBox.top;
        let _: i64 = OcrTableBoundingBox.right;
        let _: i64 = OcrTableBoundingBox.bottom;
    }
    {
        let OrientationResult = None::<crate::OrientationResult>.unwrap();
        let _: i64 = OrientationResult.degrees;
        let _: f64 = OrientationResult.confidence;
    }
    match None::<crate::OutputFormat>.unwrap() {
        crate::OutputFormat::Plain => {}
        crate::OutputFormat::Markdown => {}
        crate::OutputFormat::Djot => {}
        crate::OutputFormat::Html => {}
        crate::OutputFormat::Json => {}
        crate::OutputFormat::Structured => {}
        crate::OutputFormat::Custom { field0 } => {
            let _: String = field0;
        }
    }
    {
        let PaddleOcrConfig = None::<crate::PaddleOcrConfig>.unwrap();
        let _: String = PaddleOcrConfig.language;
        let _: Option<String> = PaddleOcrConfig.cache_dir;
        let _: bool = PaddleOcrConfig.use_angle_cls;
        let _: bool = PaddleOcrConfig.enable_table_detection;
        let _: f64 = PaddleOcrConfig.det_db_thresh;
        let _: f64 = PaddleOcrConfig.det_db_box_thresh;
        let _: f64 = PaddleOcrConfig.det_db_unclip_ratio;
        let _: i64 = PaddleOcrConfig.det_limit_side_len;
        let _: i64 = PaddleOcrConfig.rec_batch_num;
        let _: i64 = PaddleOcrConfig.padding;
        let _: f64 = PaddleOcrConfig.drop_score;
        let _: String = PaddleOcrConfig.model_tier;
    }
    {
        let PageBoundary = None::<crate::PageBoundary>.unwrap();
        let _: i64 = PageBoundary.byte_start;
        let _: i64 = PageBoundary.byte_end;
        let _: i64 = PageBoundary.page_number;
    }
    {
        let PageConfig = None::<crate::PageConfig>.unwrap();
        let _: bool = PageConfig.extract_pages;
        let _: bool = PageConfig.insert_page_markers;
        let _: String = PageConfig.marker_format;
    }
    {
        let PageContent = None::<crate::PageContent>.unwrap();
        let _: i64 = PageContent.page_number;
        let _: String = PageContent.content;
        let _: Vec<crate::Table> = PageContent.tables;
        let _: Vec<i64> = PageContent.image_indices;
        let _: Option<crate::PageHierarchy> = PageContent.hierarchy;
        let _: Option<bool> = PageContent.is_blank;
        let _: Option<Vec<crate::LayoutRegion>> = PageContent.layout_regions;
        let _: Option<String> = PageContent.speaker_notes;
        let _: Option<String> = PageContent.section_name;
        let _: Option<String> = PageContent.sheet_name;
    }
    {
        let PageHierarchy = None::<crate::PageHierarchy>.unwrap();
        let _: i64 = PageHierarchy.block_count;
        let _: Vec<crate::HierarchicalBlock> = PageHierarchy.blocks;
    }
    {
        let PageInfo = None::<crate::PageInfo>.unwrap();
        let _: i64 = PageInfo.number;
        let _: Option<String> = PageInfo.title;
        let _: Option<Vec<f64>> = PageInfo.dimensions;
        let _: Option<i64> = PageInfo.image_count;
        let _: Option<i64> = PageInfo.table_count;
        let _: Option<bool> = PageInfo.hidden;
        let _: Option<bool> = PageInfo.is_blank;
        let _: bool = PageInfo.has_vector_graphics;
    }
    {
        let PageStructure = None::<crate::PageStructure>.unwrap();
        let _: i64 = PageStructure.total_count;
        let _: crate::PageUnitType = PageStructure.unit_type;
        let _: Option<Vec<crate::PageBoundary>> = PageStructure.boundaries;
        let _: Option<Vec<crate::PageInfo>> = PageStructure.pages;
    }
    {
        let PdfAnnotation = None::<crate::PdfAnnotation>.unwrap();
        let _: crate::PdfAnnotationType = PdfAnnotation.annotation_type;
        let _: Option<String> = PdfAnnotation.content;
        let _: i64 = PdfAnnotation.page_number;
        let _: Option<crate::BoundingBox> = PdfAnnotation.bounding_box;
    }
    {
        let PdfConfig = None::<crate::PdfConfig>.unwrap();
        let _: bool = PdfConfig.extract_images;
        let _: bool = PdfConfig.extract_tables;
        let _: Option<Vec<String>> = PdfConfig.passwords;
        let _: bool = PdfConfig.extract_metadata;
        let _: Option<crate::HierarchyConfig> = PdfConfig.hierarchy;
        let _: bool = PdfConfig.extract_annotations;
        let _: Option<f64> = PdfConfig.top_margin_fraction;
        let _: Option<f64> = PdfConfig.bottom_margin_fraction;
        let _: bool = PdfConfig.allow_single_column_tables;
        let _: bool = PdfConfig.ocr_inline_images;
    }
    {
        let PdfMetadata = None::<crate::PdfMetadata>.unwrap();
        let _: Option<String> = PdfMetadata.pdf_version;
        let _: Option<String> = PdfMetadata.producer;
        let _: Option<bool> = PdfMetadata.is_encrypted;
        let _: Option<i64> = PdfMetadata.width;
        let _: Option<i64> = PdfMetadata.height;
        let _: Option<i64> = PdfMetadata.page_count;
    }
    {
        let PostProcessorConfig = None::<crate::PostProcessorConfig>.unwrap();
        let _: bool = PostProcessorConfig.enabled;
        let _: Option<Vec<String>> = PostProcessorConfig.enabled_processors;
        let _: Option<Vec<String>> = PostProcessorConfig.disabled_processors;
        let _: Option<Vec<String>> = PostProcessorConfig.enabled_set;
        let _: Option<Vec<String>> = PostProcessorConfig.disabled_set;
    }
    {
        let PptxAppProperties = None::<crate::PptxAppProperties>.unwrap();
        let _: Option<String> = PptxAppProperties.application;
        let _: Option<String> = PptxAppProperties.app_version;
        let _: Option<i64> = PptxAppProperties.total_time;
        let _: Option<String> = PptxAppProperties.company;
        let _: Option<i64> = PptxAppProperties.doc_security;
        let _: Option<bool> = PptxAppProperties.scale_crop;
        let _: Option<bool> = PptxAppProperties.links_up_to_date;
        let _: Option<bool> = PptxAppProperties.shared_doc;
        let _: Option<bool> = PptxAppProperties.hyperlinks_changed;
        let _: Option<i64> = PptxAppProperties.slides;
        let _: Option<i64> = PptxAppProperties.notes;
        let _: Option<i64> = PptxAppProperties.hidden_slides;
        let _: Option<i64> = PptxAppProperties.multimedia_clips;
        let _: Option<String> = PptxAppProperties.presentation_format;
        let _: Vec<String> = PptxAppProperties.slide_titles;
    }
    {
        let PptxExtractionResult = None::<crate::PptxExtractionResult>.unwrap();
        let _: String = PptxExtractionResult.content;
        let _: crate::PptxMetadata = PptxExtractionResult.metadata;
        let _: i64 = PptxExtractionResult.slide_count;
        let _: i64 = PptxExtractionResult.image_count;
        let _: i64 = PptxExtractionResult.table_count;
        let _: Vec<crate::ExtractedImage> = PptxExtractionResult.images;
        let _: Option<crate::PageStructure> = PptxExtractionResult.page_structure;
        let _: Option<Vec<crate::PageContent>> = PptxExtractionResult.page_contents;
        let _: Option<crate::DocumentStructure> = PptxExtractionResult.document;
        let _: Vec<String> = PptxExtractionResult.hyperlinks;
        let _: std::collections::HashMap<String, String> = PptxExtractionResult.office_metadata;
        let _: Option<Vec<crate::DocumentRevision>> = PptxExtractionResult.revisions;
    }
    {
        let PptxMetadata = None::<crate::PptxMetadata>.unwrap();
        let _: i64 = PptxMetadata.slide_count;
        let _: Vec<String> = PptxMetadata.slide_names;
        let _: Option<i64> = PptxMetadata.image_count;
        let _: Option<i64> = PptxMetadata.table_count;
    }
    {
        let ProcessingWarning = None::<crate::ProcessingWarning>.unwrap();
        let _: String = ProcessingWarning.source;
        let _: String = ProcessingWarning.message;
    }
    {
        let PstMetadata = None::<crate::PstMetadata>.unwrap();
        let _: i64 = PstMetadata.message_count;
    }
    {
        let RakeParams = None::<crate::RakeParams>.unwrap();
        let _: i64 = RakeParams.min_word_length;
        let _: i64 = RakeParams.max_words_per_phrase;
    }
    {
        let RecognizedTable = None::<crate::RecognizedTable>.unwrap();
        let _: crate::BBox = RecognizedTable.detection_bbox;
        let _: Vec<Vec<String>> = RecognizedTable.cells;
        let _: String = RecognizedTable.markdown;
    }
    match None::<crate::RevisionAnchor>.unwrap() {
        crate::RevisionAnchor::Paragraph { index } => {
            let _: i64 = index;
        }
        crate::RevisionAnchor::TableCell { row, col, table_index } => {
            let _: i64 = row;
            let _: i64 = col;
            let _: i64 = table_index;
        }
        crate::RevisionAnchor::Page { index } => {
            let _: i64 = index;
        }
        crate::RevisionAnchor::Slide { index } => {
            let _: i64 = index;
        }
        crate::RevisionAnchor::Sheet { index, name } => {
            let _: i64 = index;
            let _: String = name;
        }
    }
    {
        let RevisionDelta = None::<crate::RevisionDelta>.unwrap();
        let _: Vec<crate::DiffLine> = RevisionDelta.content;
        let _: Vec<crate::CellChange> = RevisionDelta.table_changes;
    }
    {
        let SecurityLimits = None::<crate::SecurityLimits>.unwrap();
        let _: i64 = SecurityLimits.max_archive_size;
        let _: i64 = SecurityLimits.max_compression_ratio;
        let _: i64 = SecurityLimits.max_files_in_archive;
        let _: i64 = SecurityLimits.max_nesting_depth;
        let _: i64 = SecurityLimits.max_entity_length;
        let _: i64 = SecurityLimits.max_content_size;
        let _: i64 = SecurityLimits.max_iterations;
        let _: i64 = SecurityLimits.max_xml_depth;
        let _: i64 = SecurityLimits.max_table_cells;
    }
    {
        let ServerConfig = None::<crate::ServerConfig>.unwrap();
        let _: String = ServerConfig.host;
        let _: i64 = ServerConfig.port;
        let _: Vec<String> = ServerConfig.cors_origins;
        let _: i64 = ServerConfig.max_request_body_bytes;
        let _: i64 = ServerConfig.max_multipart_field_bytes;
    }
    {
        let StructuredData = None::<crate::StructuredData>.unwrap();
        let _: crate::StructuredDataType = StructuredData.data_type;
        let _: String = StructuredData.raw_json;
        let _: Option<String> = StructuredData.schema_type;
    }
    {
        let StructuredDataResult = None::<crate::StructuredDataResult>.unwrap();
        let _: String = StructuredDataResult.content;
        let _: String = StructuredDataResult.format;
        let _: std::collections::HashMap<String, String> = StructuredDataResult.metadata;
        let _: Vec<String> = StructuredDataResult.text_fields;
    }
    {
        let StructuredExtractionConfig = None::<crate::StructuredExtractionConfig>.unwrap();
        let _: String = StructuredExtractionConfig.schema;
        let _: String = StructuredExtractionConfig.schema_name;
        let _: Option<String> = StructuredExtractionConfig.schema_description;
        let _: bool = StructuredExtractionConfig.strict;
        let _: Option<String> = StructuredExtractionConfig.prompt;
        let _: crate::LlmConfig = StructuredExtractionConfig.llm;
    }
    {
        let SupportedFormat = None::<crate::SupportedFormat>.unwrap();
        let _: String = SupportedFormat.extension;
        let _: String = SupportedFormat.mime_type;
    }
    {
        let Table = None::<crate::Table>.unwrap();
        let _: Vec<Vec<String>> = Table.cells;
        let _: String = Table.markdown;
        let _: i64 = Table.page_number;
        let _: Option<crate::BoundingBox> = Table.bounding_box;
    }
    {
        let TableCell = None::<crate::TableCell>.unwrap();
        let _: String = TableCell.content;
        let _: i64 = TableCell.row_span;
        let _: i64 = TableCell.col_span;
        let _: bool = TableCell.is_header;
    }
    {
        let TableDiff = None::<crate::TableDiff>.unwrap();
        let _: i64 = TableDiff.from_index;
        let _: i64 = TableDiff.to_index;
        let _: Vec<crate::CellChange> = TableDiff.cell_changes;
    }
    {
        let TableGrid = None::<crate::TableGrid>.unwrap();
        let _: i64 = TableGrid.rows;
        let _: i64 = TableGrid.cols;
        let _: Vec<crate::GridCell> = TableGrid.cells;
    }
    {
        let TesseractConfig = None::<crate::TesseractConfig>.unwrap();
        let _: String = TesseractConfig.language;
        let _: i64 = TesseractConfig.psm;
        let _: String = TesseractConfig.output_format;
        let _: i64 = TesseractConfig.oem;
        let _: f64 = TesseractConfig.min_confidence;
        let _: Option<crate::ImagePreprocessingConfig> = TesseractConfig.preprocessing;
        let _: bool = TesseractConfig.enable_table_detection;
        let _: f64 = TesseractConfig.table_min_confidence;
        let _: i64 = TesseractConfig.table_column_threshold;
        let _: f64 = TesseractConfig.table_row_threshold_ratio;
        let _: bool = TesseractConfig.use_cache;
        let _: bool = TesseractConfig.classify_use_pre_adapted_templates;
        let _: bool = TesseractConfig.language_model_ngram_on;
        let _: bool = TesseractConfig.tessedit_dont_blkrej_good_wds;
        let _: bool = TesseractConfig.tessedit_dont_rowrej_good_wds;
        let _: bool = TesseractConfig.tessedit_enable_dict_correction;
        let _: String = TesseractConfig.tessedit_char_whitelist;
        let _: String = TesseractConfig.tessedit_char_blacklist;
        let _: bool = TesseractConfig.tessedit_use_primary_params_model;
        let _: bool = TesseractConfig.textord_space_size_is_variable;
        let _: bool = TesseractConfig.thresholding_method;
    }
    {
        let TextAnnotation = None::<crate::TextAnnotation>.unwrap();
        let _: i64 = TextAnnotation.start;
        let _: i64 = TextAnnotation.end;
        let _: crate::AnnotationKind = TextAnnotation.kind;
    }
    {
        let TextExtractionResult = None::<crate::TextExtractionResult>.unwrap();
        let _: String = TextExtractionResult.content;
        let _: i64 = TextExtractionResult.line_count;
        let _: i64 = TextExtractionResult.word_count;
        let _: i64 = TextExtractionResult.character_count;
        let _: Option<Vec<String>> = TextExtractionResult.headers;
        let _: Option<Vec<Vec<String>>> = TextExtractionResult.links;
        let _: Option<Vec<Vec<String>>> = TextExtractionResult.code_blocks;
    }
    {
        let TextMetadata = None::<crate::TextMetadata>.unwrap();
        let _: i64 = TextMetadata.line_count;
        let _: i64 = TextMetadata.word_count;
        let _: i64 = TextMetadata.character_count;
        let _: Option<Vec<String>> = TextMetadata.headers;
        let _: Option<Vec<Vec<String>>> = TextMetadata.links;
        let _: Option<Vec<Vec<String>>> = TextMetadata.code_blocks;
    }
    {
        let TokenReductionConfig = None::<crate::TokenReductionConfig>.unwrap();
        let _: crate::ReductionLevel = TokenReductionConfig.level;
        let _: Option<String> = TokenReductionConfig.language_hint;
        let _: bool = TokenReductionConfig.preserve_markdown;
        let _: bool = TokenReductionConfig.preserve_code;
        let _: f64 = TokenReductionConfig.semantic_threshold;
        let _: bool = TokenReductionConfig.enable_parallel;
        let _: bool = TokenReductionConfig.use_simd;
        let _: Option<std::collections::HashMap<String, Vec<String>>> = TokenReductionConfig.custom_stopwords;
        let _: Vec<String> = TokenReductionConfig.preserve_patterns;
        let _: Option<f64> = TokenReductionConfig.target_reduction;
        let _: bool = TokenReductionConfig.enable_semantic_clustering;
    }
    {
        let TokenReductionOptions = None::<crate::TokenReductionOptions>.unwrap();
        let _: String = TokenReductionOptions.mode;
        let _: bool = TokenReductionOptions.preserve_important_words;
    }
    {
        let TreeSitterConfig = None::<crate::TreeSitterConfig>.unwrap();
        let _: bool = TreeSitterConfig.enabled;
        let _: Option<String> = TreeSitterConfig.cache_dir;
        let _: Option<Vec<String>> = TreeSitterConfig.languages;
        let _: Option<Vec<String>> = TreeSitterConfig.groups;
        let _: crate::TreeSitterProcessConfig = TreeSitterConfig.process;
    }
    {
        let TreeSitterProcessConfig = None::<crate::TreeSitterProcessConfig>.unwrap();
        let _: bool = TreeSitterProcessConfig.structure;
        let _: bool = TreeSitterProcessConfig.imports;
        let _: bool = TreeSitterProcessConfig.exports;
        let _: bool = TreeSitterProcessConfig.comments;
        let _: bool = TreeSitterProcessConfig.docstrings;
        let _: bool = TreeSitterProcessConfig.symbols;
        let _: bool = TreeSitterProcessConfig.diagnostics;
        let _: Option<i64> = TreeSitterProcessConfig.chunk_max_size;
        let _: crate::CodeContentMode = TreeSitterProcessConfig.content_mode;
    }
    {
        let XlsxAppProperties = None::<crate::XlsxAppProperties>.unwrap();
        let _: Option<String> = XlsxAppProperties.application;
        let _: Option<String> = XlsxAppProperties.app_version;
        let _: Option<i64> = XlsxAppProperties.doc_security;
        let _: Option<bool> = XlsxAppProperties.scale_crop;
        let _: Option<bool> = XlsxAppProperties.links_up_to_date;
        let _: Option<bool> = XlsxAppProperties.shared_doc;
        let _: Option<bool> = XlsxAppProperties.hyperlinks_changed;
        let _: Option<String> = XlsxAppProperties.company;
        let _: Vec<String> = XlsxAppProperties.worksheet_names;
    }
    {
        let XmlExtractionResult = None::<crate::XmlExtractionResult>.unwrap();
        let _: String = XmlExtractionResult.content;
        let _: i64 = XmlExtractionResult.element_count;
        let _: Vec<String> = XmlExtractionResult.unique_elements;
    }
    {
        let XmlMetadata = None::<crate::XmlMetadata>.unwrap();
        let _: i64 = XmlMetadata.element_count;
        let _: Vec<String> = XmlMetadata.unique_elements;
    }
    {
        let YakeParams = None::<crate::YakeParams>.unwrap();
        let _: i64 = YakeParams.window_size;
    }
    {
        let YearRange = None::<crate::YearRange>.unwrap();
        let _: Option<i64> = YearRange.min;
        let _: Option<i64> = YearRange.max;
        let _: Vec<i64> = YearRange.years;
    }
};

// Section: related_funcs

fn decode_DartFn_Inputs_String_Output_bool_AnyhowException(
    dart_opaque: flutter_rust_bridge::DartOpaque,
) -> impl Fn(String) -> flutter_rust_bridge::DartFnFuture<bool> {
    use flutter_rust_bridge::IntoDart;

    async fn body(dart_opaque: flutter_rust_bridge::DartOpaque, arg0: String) -> bool {
        let args = vec![arg0.into_into_dart().into_dart()];
        let message = FLUTTER_RUST_BRIDGE_HANDLER.dart_fn_invoke(dart_opaque, args).await;

        let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
        let action = deserializer.cursor.read_u8().unwrap();
        let ans = match action {
            0 => std::result::Result::Ok(<bool>::sse_decode(&mut deserializer)),
            1 => std::result::Result::Err(<flutter_rust_bridge::for_generated::anyhow::Error>::sse_decode(
                &mut deserializer,
            )),
            _ => unreachable!(),
        };
        deserializer.end();
        let ans = ans.expect("Dart throws exception but Rust side assume it is not failable");
        ans
    }

    move |arg0: String| flutter_rust_bridge::for_generated::convert_into_dart_fn_future(body(dart_opaque.clone(), arg0))
}
fn decode_DartFn_Inputs_String_String_Output_bool_AnyhowException(
    dart_opaque: flutter_rust_bridge::DartOpaque,
) -> impl Fn(String, String) -> flutter_rust_bridge::DartFnFuture<bool> {
    use flutter_rust_bridge::IntoDart;

    async fn body(dart_opaque: flutter_rust_bridge::DartOpaque, arg0: String, arg1: String) -> bool {
        let args = vec![arg0.into_into_dart().into_dart(), arg1.into_into_dart().into_dart()];
        let message = FLUTTER_RUST_BRIDGE_HANDLER.dart_fn_invoke(dart_opaque, args).await;

        let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
        let action = deserializer.cursor.read_u8().unwrap();
        let ans = match action {
            0 => std::result::Result::Ok(<bool>::sse_decode(&mut deserializer)),
            1 => std::result::Result::Err(<flutter_rust_bridge::for_generated::anyhow::Error>::sse_decode(
                &mut deserializer,
            )),
            _ => unreachable!(),
        };
        deserializer.end();
        let ans = ans.expect("Dart throws exception but Rust side assume it is not failable");
        ans
    }

    move |arg0: String, arg1: String| {
        flutter_rust_bridge::for_generated::convert_into_dart_fn_future(body(dart_opaque.clone(), arg0, arg1))
    }
}
fn decode_DartFn_Inputs_String_String_extraction_config_Output_internal_document_bridge_AnyhowException(
    dart_opaque: flutter_rust_bridge::DartOpaque,
) -> impl Fn(String, String, crate::ExtractionConfig) -> flutter_rust_bridge::DartFnFuture<crate::InternalDocumentBridge>
{
    use flutter_rust_bridge::IntoDart;

    async fn body(
        dart_opaque: flutter_rust_bridge::DartOpaque,
        arg0: String,
        arg1: String,
        arg2: crate::ExtractionConfig,
    ) -> crate::InternalDocumentBridge {
        let args = vec![
            arg0.into_into_dart().into_dart(),
            arg1.into_into_dart().into_dart(),
            arg2.into_into_dart().into_dart(),
        ];
        let message = FLUTTER_RUST_BRIDGE_HANDLER.dart_fn_invoke(dart_opaque, args).await;

        let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
        let action = deserializer.cursor.read_u8().unwrap();
        let ans = match action {
            0 => std::result::Result::Ok(<crate::InternalDocumentBridge>::sse_decode(&mut deserializer)),
            1 => std::result::Result::Err(<flutter_rust_bridge::for_generated::anyhow::Error>::sse_decode(
                &mut deserializer,
            )),
            _ => unreachable!(),
        };
        deserializer.end();
        let ans = ans.expect("Dart throws exception but Rust side assume it is not failable");
        ans
    }

    move |arg0: String, arg1: String, arg2: crate::ExtractionConfig| {
        flutter_rust_bridge::for_generated::convert_into_dart_fn_future(body(dart_opaque.clone(), arg0, arg1, arg2))
    }
}
fn decode_DartFn_Inputs_String_ocr_config_Output_extraction_result_AnyhowException(
    dart_opaque: flutter_rust_bridge::DartOpaque,
) -> impl Fn(String, crate::OcrConfig) -> flutter_rust_bridge::DartFnFuture<crate::ExtractionResult> {
    use flutter_rust_bridge::IntoDart;

    async fn body(
        dart_opaque: flutter_rust_bridge::DartOpaque,
        arg0: String,
        arg1: crate::OcrConfig,
    ) -> crate::ExtractionResult {
        let args = vec![arg0.into_into_dart().into_dart(), arg1.into_into_dart().into_dart()];
        let message = FLUTTER_RUST_BRIDGE_HANDLER.dart_fn_invoke(dart_opaque, args).await;

        let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
        let action = deserializer.cursor.read_u8().unwrap();
        let ans = match action {
            0 => std::result::Result::Ok(<crate::ExtractionResult>::sse_decode(&mut deserializer)),
            1 => std::result::Result::Err(<flutter_rust_bridge::for_generated::anyhow::Error>::sse_decode(
                &mut deserializer,
            )),
            _ => unreachable!(),
        };
        deserializer.end();
        let ans = ans.expect("Dart throws exception but Rust side assume it is not failable");
        ans
    }

    move |arg0: String, arg1: crate::OcrConfig| {
        flutter_rust_bridge::for_generated::convert_into_dart_fn_future(body(dart_opaque.clone(), arg0, arg1))
    }
}
fn decode_DartFn_Inputs__Output_bool_AnyhowException(
    dart_opaque: flutter_rust_bridge::DartOpaque,
) -> impl Fn() -> flutter_rust_bridge::DartFnFuture<bool> {
    use flutter_rust_bridge::IntoDart;

    async fn body(dart_opaque: flutter_rust_bridge::DartOpaque) -> bool {
        let args = vec![];
        let message = FLUTTER_RUST_BRIDGE_HANDLER.dart_fn_invoke(dart_opaque, args).await;

        let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
        let action = deserializer.cursor.read_u8().unwrap();
        let ans = match action {
            0 => std::result::Result::Ok(<bool>::sse_decode(&mut deserializer)),
            1 => std::result::Result::Err(<flutter_rust_bridge::for_generated::anyhow::Error>::sse_decode(
                &mut deserializer,
            )),
            _ => unreachable!(),
        };
        deserializer.end();
        let ans = ans.expect("Dart throws exception but Rust side assume it is not failable");
        ans
    }

    move || flutter_rust_bridge::for_generated::convert_into_dart_fn_future(body(dart_opaque.clone()))
}
fn decode_DartFn_Inputs__Output_i_64_AnyhowException(
    dart_opaque: flutter_rust_bridge::DartOpaque,
) -> impl Fn() -> flutter_rust_bridge::DartFnFuture<i64> {
    use flutter_rust_bridge::IntoDart;

    async fn body(dart_opaque: flutter_rust_bridge::DartOpaque) -> i64 {
        let args = vec![];
        let message = FLUTTER_RUST_BRIDGE_HANDLER.dart_fn_invoke(dart_opaque, args).await;

        let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
        let action = deserializer.cursor.read_u8().unwrap();
        let ans = match action {
            0 => std::result::Result::Ok(<i64>::sse_decode(&mut deserializer)),
            1 => std::result::Result::Err(<flutter_rust_bridge::for_generated::anyhow::Error>::sse_decode(
                &mut deserializer,
            )),
            _ => unreachable!(),
        };
        deserializer.end();
        let ans = ans.expect("Dart throws exception but Rust side assume it is not failable");
        ans
    }

    move || flutter_rust_bridge::for_generated::convert_into_dart_fn_future(body(dart_opaque.clone()))
}
fn decode_DartFn_Inputs__Output_list_String_AnyhowException(
    dart_opaque: flutter_rust_bridge::DartOpaque,
) -> impl Fn() -> flutter_rust_bridge::DartFnFuture<Vec<String>> {
    use flutter_rust_bridge::IntoDart;

    async fn body(dart_opaque: flutter_rust_bridge::DartOpaque) -> Vec<String> {
        let args = vec![];
        let message = FLUTTER_RUST_BRIDGE_HANDLER.dart_fn_invoke(dart_opaque, args).await;

        let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
        let action = deserializer.cursor.read_u8().unwrap();
        let ans = match action {
            0 => std::result::Result::Ok(<Vec<String>>::sse_decode(&mut deserializer)),
            1 => std::result::Result::Err(<flutter_rust_bridge::for_generated::anyhow::Error>::sse_decode(
                &mut deserializer,
            )),
            _ => unreachable!(),
        };
        deserializer.end();
        let ans = ans.expect("Dart throws exception but Rust side assume it is not failable");
        ans
    }

    move || flutter_rust_bridge::for_generated::convert_into_dart_fn_future(body(dart_opaque.clone()))
}
fn decode_DartFn_Inputs__Output_ocr_backend_type_AnyhowException(
    dart_opaque: flutter_rust_bridge::DartOpaque,
) -> impl Fn() -> flutter_rust_bridge::DartFnFuture<crate::OcrBackendType> {
    use flutter_rust_bridge::IntoDart;

    async fn body(dart_opaque: flutter_rust_bridge::DartOpaque) -> crate::OcrBackendType {
        let args = vec![];
        let message = FLUTTER_RUST_BRIDGE_HANDLER.dart_fn_invoke(dart_opaque, args).await;

        let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
        let action = deserializer.cursor.read_u8().unwrap();
        let ans = match action {
            0 => std::result::Result::Ok(<crate::OcrBackendType>::sse_decode(&mut deserializer)),
            1 => std::result::Result::Err(<flutter_rust_bridge::for_generated::anyhow::Error>::sse_decode(
                &mut deserializer,
            )),
            _ => unreachable!(),
        };
        deserializer.end();
        let ans = ans.expect("Dart throws exception but Rust side assume it is not failable");
        ans
    }

    move || flutter_rust_bridge::for_generated::convert_into_dart_fn_future(body(dart_opaque.clone()))
}
fn decode_DartFn_Inputs__Output_processing_stage_AnyhowException(
    dart_opaque: flutter_rust_bridge::DartOpaque,
) -> impl Fn() -> flutter_rust_bridge::DartFnFuture<crate::ProcessingStage> {
    use flutter_rust_bridge::IntoDart;

    async fn body(dart_opaque: flutter_rust_bridge::DartOpaque) -> crate::ProcessingStage {
        let args = vec![];
        let message = FLUTTER_RUST_BRIDGE_HANDLER.dart_fn_invoke(dart_opaque, args).await;

        let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
        let action = deserializer.cursor.read_u8().unwrap();
        let ans = match action {
            0 => std::result::Result::Ok(<crate::ProcessingStage>::sse_decode(&mut deserializer)),
            1 => std::result::Result::Err(<flutter_rust_bridge::for_generated::anyhow::Error>::sse_decode(
                &mut deserializer,
            )),
            _ => unreachable!(),
        };
        deserializer.end();
        let ans = ans.expect("Dart throws exception but Rust side assume it is not failable");
        ans
    }

    move || flutter_rust_bridge::for_generated::convert_into_dart_fn_future(body(dart_opaque.clone()))
}
fn decode_DartFn_Inputs_extraction_result_Output_i_64_AnyhowException(
    dart_opaque: flutter_rust_bridge::DartOpaque,
) -> impl Fn(crate::ExtractionResult) -> flutter_rust_bridge::DartFnFuture<i64> {
    use flutter_rust_bridge::IntoDart;

    async fn body(dart_opaque: flutter_rust_bridge::DartOpaque, arg0: crate::ExtractionResult) -> i64 {
        let args = vec![arg0.into_into_dart().into_dart()];
        let message = FLUTTER_RUST_BRIDGE_HANDLER.dart_fn_invoke(dart_opaque, args).await;

        let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
        let action = deserializer.cursor.read_u8().unwrap();
        let ans = match action {
            0 => std::result::Result::Ok(<i64>::sse_decode(&mut deserializer)),
            1 => std::result::Result::Err(<flutter_rust_bridge::for_generated::anyhow::Error>::sse_decode(
                &mut deserializer,
            )),
            _ => unreachable!(),
        };
        deserializer.end();
        let ans = ans.expect("Dart throws exception but Rust side assume it is not failable");
        ans
    }

    move |arg0: crate::ExtractionResult| {
        flutter_rust_bridge::for_generated::convert_into_dart_fn_future(body(dart_opaque.clone(), arg0))
    }
}
fn decode_DartFn_Inputs_extraction_result_extraction_config_Output_bool_AnyhowException(
    dart_opaque: flutter_rust_bridge::DartOpaque,
) -> impl Fn(crate::ExtractionResult, crate::ExtractionConfig) -> flutter_rust_bridge::DartFnFuture<bool> {
    use flutter_rust_bridge::IntoDart;

    async fn body(
        dart_opaque: flutter_rust_bridge::DartOpaque,
        arg0: crate::ExtractionResult,
        arg1: crate::ExtractionConfig,
    ) -> bool {
        let args = vec![arg0.into_into_dart().into_dart(), arg1.into_into_dart().into_dart()];
        let message = FLUTTER_RUST_BRIDGE_HANDLER.dart_fn_invoke(dart_opaque, args).await;

        let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
        let action = deserializer.cursor.read_u8().unwrap();
        let ans = match action {
            0 => std::result::Result::Ok(<bool>::sse_decode(&mut deserializer)),
            1 => std::result::Result::Err(<flutter_rust_bridge::for_generated::anyhow::Error>::sse_decode(
                &mut deserializer,
            )),
            _ => unreachable!(),
        };
        deserializer.end();
        let ans = ans.expect("Dart throws exception but Rust side assume it is not failable");
        ans
    }

    move |arg0: crate::ExtractionResult, arg1: crate::ExtractionConfig| {
        flutter_rust_bridge::for_generated::convert_into_dart_fn_future(body(dart_opaque.clone(), arg0, arg1))
    }
}
fn decode_DartFn_Inputs_extraction_result_extraction_config_Output_unit_AnyhowException(
    dart_opaque: flutter_rust_bridge::DartOpaque,
) -> impl Fn(crate::ExtractionResult, crate::ExtractionConfig) -> flutter_rust_bridge::DartFnFuture<()> {
    use flutter_rust_bridge::IntoDart;

    async fn body(
        dart_opaque: flutter_rust_bridge::DartOpaque,
        arg0: crate::ExtractionResult,
        arg1: crate::ExtractionConfig,
    ) -> () {
        let args = vec![arg0.into_into_dart().into_dart(), arg1.into_into_dart().into_dart()];
        let message = FLUTTER_RUST_BRIDGE_HANDLER.dart_fn_invoke(dart_opaque, args).await;

        let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
        let action = deserializer.cursor.read_u8().unwrap();
        let ans = match action {
            0 => std::result::Result::Ok(<()>::sse_decode(&mut deserializer)),
            1 => std::result::Result::Err(<flutter_rust_bridge::for_generated::anyhow::Error>::sse_decode(
                &mut deserializer,
            )),
            _ => unreachable!(),
        };
        deserializer.end();
        let ans = ans.expect("Dart throws exception but Rust side assume it is not failable");
        ans
    }

    move |arg0: crate::ExtractionResult, arg1: crate::ExtractionConfig| {
        flutter_rust_bridge::for_generated::convert_into_dart_fn_future(body(dart_opaque.clone(), arg0, arg1))
    }
}
fn decode_DartFn_Inputs_internal_document_bridge_Output_String_AnyhowException(
    dart_opaque: flutter_rust_bridge::DartOpaque,
) -> impl Fn(crate::InternalDocumentBridge) -> flutter_rust_bridge::DartFnFuture<String> {
    use flutter_rust_bridge::IntoDart;

    async fn body(dart_opaque: flutter_rust_bridge::DartOpaque, arg0: crate::InternalDocumentBridge) -> String {
        let args = vec![arg0.into_into_dart().into_dart()];
        let message = FLUTTER_RUST_BRIDGE_HANDLER.dart_fn_invoke(dart_opaque, args).await;

        let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
        let action = deserializer.cursor.read_u8().unwrap();
        let ans = match action {
            0 => std::result::Result::Ok(<String>::sse_decode(&mut deserializer)),
            1 => std::result::Result::Err(<flutter_rust_bridge::for_generated::anyhow::Error>::sse_decode(
                &mut deserializer,
            )),
            _ => unreachable!(),
        };
        deserializer.end();
        let ans = ans.expect("Dart throws exception but Rust side assume it is not failable");
        ans
    }

    move |arg0: crate::InternalDocumentBridge| {
        flutter_rust_bridge::for_generated::convert_into_dart_fn_future(body(dart_opaque.clone(), arg0))
    }
}
fn decode_DartFn_Inputs_list_String_Output_list_list_prim_f_64_strict_AnyhowException(
    dart_opaque: flutter_rust_bridge::DartOpaque,
) -> impl Fn(Vec<String>) -> flutter_rust_bridge::DartFnFuture<Vec<Vec<f64>>> {
    use flutter_rust_bridge::IntoDart;

    async fn body(dart_opaque: flutter_rust_bridge::DartOpaque, arg0: Vec<String>) -> Vec<Vec<f64>> {
        let args = vec![arg0.into_into_dart().into_dart()];
        let message = FLUTTER_RUST_BRIDGE_HANDLER.dart_fn_invoke(dart_opaque, args).await;

        let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
        let action = deserializer.cursor.read_u8().unwrap();
        let ans = match action {
            0 => std::result::Result::Ok(<Vec<Vec<f64>>>::sse_decode(&mut deserializer)),
            1 => std::result::Result::Err(<flutter_rust_bridge::for_generated::anyhow::Error>::sse_decode(
                &mut deserializer,
            )),
            _ => unreachable!(),
        };
        deserializer.end();
        let ans = ans.expect("Dart throws exception but Rust side assume it is not failable");
        ans
    }

    move |arg0: Vec<String>| {
        flutter_rust_bridge::for_generated::convert_into_dart_fn_future(body(dart_opaque.clone(), arg0))
    }
}
fn decode_DartFn_Inputs_list_prim_u_8_strict_String_extraction_config_Output_internal_document_bridge_AnyhowException(
    dart_opaque: flutter_rust_bridge::DartOpaque,
) -> impl Fn(Vec<u8>, String, crate::ExtractionConfig) -> flutter_rust_bridge::DartFnFuture<crate::InternalDocumentBridge>
{
    use flutter_rust_bridge::IntoDart;

    async fn body(
        dart_opaque: flutter_rust_bridge::DartOpaque,
        arg0: Vec<u8>,
        arg1: String,
        arg2: crate::ExtractionConfig,
    ) -> crate::InternalDocumentBridge {
        let args = vec![
            arg0.into_into_dart().into_dart(),
            arg1.into_into_dart().into_dart(),
            arg2.into_into_dart().into_dart(),
        ];
        let message = FLUTTER_RUST_BRIDGE_HANDLER.dart_fn_invoke(dart_opaque, args).await;

        let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
        let action = deserializer.cursor.read_u8().unwrap();
        let ans = match action {
            0 => std::result::Result::Ok(<crate::InternalDocumentBridge>::sse_decode(&mut deserializer)),
            1 => std::result::Result::Err(<flutter_rust_bridge::for_generated::anyhow::Error>::sse_decode(
                &mut deserializer,
            )),
            _ => unreachable!(),
        };
        deserializer.end();
        let ans = ans.expect("Dart throws exception but Rust side assume it is not failable");
        ans
    }

    move |arg0: Vec<u8>, arg1: String, arg2: crate::ExtractionConfig| {
        flutter_rust_bridge::for_generated::convert_into_dart_fn_future(body(dart_opaque.clone(), arg0, arg1, arg2))
    }
}
fn decode_DartFn_Inputs_list_prim_u_8_strict_ocr_config_Output_extraction_result_AnyhowException(
    dart_opaque: flutter_rust_bridge::DartOpaque,
) -> impl Fn(Vec<u8>, crate::OcrConfig) -> flutter_rust_bridge::DartFnFuture<crate::ExtractionResult> {
    use flutter_rust_bridge::IntoDart;

    async fn body(
        dart_opaque: flutter_rust_bridge::DartOpaque,
        arg0: Vec<u8>,
        arg1: crate::OcrConfig,
    ) -> crate::ExtractionResult {
        let args = vec![arg0.into_into_dart().into_dart(), arg1.into_into_dart().into_dart()];
        let message = FLUTTER_RUST_BRIDGE_HANDLER.dart_fn_invoke(dart_opaque, args).await;

        let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message);
        let action = deserializer.cursor.read_u8().unwrap();
        let ans = match action {
            0 => std::result::Result::Ok(<crate::ExtractionResult>::sse_decode(&mut deserializer)),
            1 => std::result::Result::Err(<flutter_rust_bridge::for_generated::anyhow::Error>::sse_decode(
                &mut deserializer,
            )),
            _ => unreachable!(),
        };
        deserializer.end();
        let ans = ans.expect("Dart throws exception but Rust side assume it is not failable");
        ans
    }

    move |arg0: Vec<u8>, arg1: crate::OcrConfig| {
        flutter_rust_bridge::for_generated::convert_into_dart_fn_future(body(dart_opaque.clone(), arg0, arg1))
    }
}
flutter_rust_bridge::frb_generated_moi_arc_impl_value!(
    flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn DocumentExtractor + Send + Sync>>
);
flutter_rust_bridge::frb_generated_moi_arc_impl_value!(
    flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn EmbeddingBackend + Send + Sync>>
);
flutter_rust_bridge::frb_generated_moi_arc_impl_value!(
    flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn OcrBackend + Send + Sync>>
);
flutter_rust_bridge::frb_generated_moi_arc_impl_value!(
    flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn PostProcessor + Send + Sync>>
);
flutter_rust_bridge::frb_generated_moi_arc_impl_value!(
    flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn Renderer + Send + Sync>>
);
flutter_rust_bridge::frb_generated_moi_arc_impl_value!(
    flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn Validator + Send + Sync>>
);
flutter_rust_bridge::frb_generated_moi_arc_impl_value!(
    flutter_rust_bridge::for_generated::RustAutoOpaqueInner<DocumentExtractorDartImpl>
);
flutter_rust_bridge::frb_generated_moi_arc_impl_value!(
    flutter_rust_bridge::for_generated::RustAutoOpaqueInner<EmbeddingBackendDartImpl>
);
flutter_rust_bridge::frb_generated_moi_arc_impl_value!(
    flutter_rust_bridge::for_generated::RustAutoOpaqueInner<OcrBackendDartImpl>
);
flutter_rust_bridge::frb_generated_moi_arc_impl_value!(
    flutter_rust_bridge::for_generated::RustAutoOpaqueInner<PostProcessorDartImpl>
);
flutter_rust_bridge::frb_generated_moi_arc_impl_value!(
    flutter_rust_bridge::for_generated::RustAutoOpaqueInner<RendererDartImpl>
);
flutter_rust_bridge::frb_generated_moi_arc_impl_value!(
    flutter_rust_bridge::for_generated::RustAutoOpaqueInner<ValidatorDartImpl>
);

// Section: dart2rust

impl SseDecode for flutter_rust_bridge::for_generated::anyhow::Error {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <String>::sse_decode(deserializer);
        return flutter_rust_bridge::for_generated::anyhow::anyhow!("{}", inner);
    }
}

impl SseDecode for Arc<dyn DocumentExtractor + Send + Sync> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <RustOpaqueMoi<
            flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn DocumentExtractor + Send + Sync>>,
        >>::sse_decode(deserializer);
        return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner);
    }
}

impl SseDecode for Arc<dyn EmbeddingBackend + Send + Sync> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <RustOpaqueMoi<
            flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn EmbeddingBackend + Send + Sync>>,
        >>::sse_decode(deserializer);
        return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner);
    }
}

impl SseDecode for Arc<dyn OcrBackend + Send + Sync> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <RustOpaqueMoi<
            flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn OcrBackend + Send + Sync>>,
        >>::sse_decode(deserializer);
        return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner);
    }
}

impl SseDecode for Arc<dyn PostProcessor + Send + Sync> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <RustOpaqueMoi<
            flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn PostProcessor + Send + Sync>>,
        >>::sse_decode(deserializer);
        return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner);
    }
}

impl SseDecode for Arc<dyn Renderer + Send + Sync> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <RustOpaqueMoi<
            flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn Renderer + Send + Sync>>,
        >>::sse_decode(deserializer);
        return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner);
    }
}

impl SseDecode for Arc<dyn Validator + Send + Sync> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <RustOpaqueMoi<
            flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn Validator + Send + Sync>>,
        >>::sse_decode(deserializer);
        return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner);
    }
}

impl SseDecode for DocumentExtractorDartImpl {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <RustOpaqueMoi<
            flutter_rust_bridge::for_generated::RustAutoOpaqueInner<DocumentExtractorDartImpl>,
        >>::sse_decode(deserializer);
        return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner);
    }
}

impl SseDecode for EmbeddingBackendDartImpl {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <RustOpaqueMoi<
            flutter_rust_bridge::for_generated::RustAutoOpaqueInner<EmbeddingBackendDartImpl>,
        >>::sse_decode(deserializer);
        return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner);
    }
}

impl SseDecode for OcrBackendDartImpl {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner =
            <RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<OcrBackendDartImpl>>>::sse_decode(
                deserializer,
            );
        return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner);
    }
}

impl SseDecode for PostProcessorDartImpl {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner =
            <RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<PostProcessorDartImpl>>>::sse_decode(
                deserializer,
            );
        return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner);
    }
}

impl SseDecode for RendererDartImpl {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner =
            <RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<RendererDartImpl>>>::sse_decode(
                deserializer,
            );
        return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner);
    }
}

impl SseDecode for ValidatorDartImpl {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner =
            <RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<ValidatorDartImpl>>>::sse_decode(
                deserializer,
            );
        return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner);
    }
}

impl SseDecode for flutter_rust_bridge::DartOpaque {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <usize>::sse_decode(deserializer);
        return unsafe { flutter_rust_bridge::for_generated::sse_decode_dart_opaque(inner) };
    }
}

impl SseDecode for std::collections::HashMap<String, String> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <Vec<(String, String)>>::sse_decode(deserializer);
        return inner.into_iter().collect();
    }
}

impl SseDecode for std::collections::HashMap<String, i64> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <Vec<(String, i64)>>::sse_decode(deserializer);
        return inner.into_iter().collect();
    }
}

impl SseDecode for std::collections::HashMap<String, Vec<String>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <Vec<(String, Vec<String>)>>::sse_decode(deserializer);
        return inner.into_iter().collect();
    }
}

impl SseDecode for std::collections::HashMap<String, Vec<u8>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <Vec<(String, Vec<u8>)>>::sse_decode(deserializer);
        return inner.into_iter().collect();
    }
}

impl SseDecode
    for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn DocumentExtractor + Send + Sync>>>
{
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <usize>::sse_decode(deserializer);
        return decode_rust_opaque_moi(inner);
    }
}

impl SseDecode
    for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn EmbeddingBackend + Send + Sync>>>
{
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <usize>::sse_decode(deserializer);
        return decode_rust_opaque_moi(inner);
    }
}

impl SseDecode
    for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn OcrBackend + Send + Sync>>>
{
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <usize>::sse_decode(deserializer);
        return decode_rust_opaque_moi(inner);
    }
}

impl SseDecode
    for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn PostProcessor + Send + Sync>>>
{
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <usize>::sse_decode(deserializer);
        return decode_rust_opaque_moi(inner);
    }
}

impl SseDecode
    for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn Renderer + Send + Sync>>>
{
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <usize>::sse_decode(deserializer);
        return decode_rust_opaque_moi(inner);
    }
}

impl SseDecode
    for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn Validator + Send + Sync>>>
{
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <usize>::sse_decode(deserializer);
        return decode_rust_opaque_moi(inner);
    }
}

impl SseDecode for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<DocumentExtractorDartImpl>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <usize>::sse_decode(deserializer);
        return decode_rust_opaque_moi(inner);
    }
}

impl SseDecode for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<EmbeddingBackendDartImpl>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <usize>::sse_decode(deserializer);
        return decode_rust_opaque_moi(inner);
    }
}

impl SseDecode for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<OcrBackendDartImpl>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <usize>::sse_decode(deserializer);
        return decode_rust_opaque_moi(inner);
    }
}

impl SseDecode for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<PostProcessorDartImpl>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <usize>::sse_decode(deserializer);
        return decode_rust_opaque_moi(inner);
    }
}

impl SseDecode for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<RendererDartImpl>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <usize>::sse_decode(deserializer);
        return decode_rust_opaque_moi(inner);
    }
}

impl SseDecode for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<ValidatorDartImpl>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <usize>::sse_decode(deserializer);
        return decode_rust_opaque_moi(inner);
    }
}

impl SseDecode for String {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <Vec<u8>>::sse_decode(deserializer);
        return String::from_utf8(inner).unwrap();
    }
}

impl SseDecode for crate::AccelerationConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_provider = <crate::ExecutionProviderType>::sse_decode(deserializer);
        let mut var_deviceId = <i64>::sse_decode(deserializer);
        return crate::AccelerationConfig {
            provider: var_provider,
            device_id: var_deviceId,
        };
    }
}

impl SseDecode for crate::AnnotationKind {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut tag_ = <i32>::sse_decode(deserializer);
        match tag_ {
            0 => {
                return crate::AnnotationKind::Bold;
            }
            1 => {
                return crate::AnnotationKind::Italic;
            }
            2 => {
                return crate::AnnotationKind::Underline;
            }
            3 => {
                return crate::AnnotationKind::Strikethrough;
            }
            4 => {
                return crate::AnnotationKind::Code;
            }
            5 => {
                return crate::AnnotationKind::Subscript;
            }
            6 => {
                return crate::AnnotationKind::Superscript;
            }
            7 => {
                let mut var_url = <String>::sse_decode(deserializer);
                let mut var_title = <String>::sse_decode(deserializer);
                return crate::AnnotationKind::Link {
                    url: var_url,
                    title: var_title,
                };
            }
            8 => {
                return crate::AnnotationKind::Highlight;
            }
            9 => {
                let mut var_value = <String>::sse_decode(deserializer);
                return crate::AnnotationKind::Color { value: var_value };
            }
            10 => {
                let mut var_value = <String>::sse_decode(deserializer);
                return crate::AnnotationKind::FontSize { value: var_value };
            }
            11 => {
                let mut var_name = <String>::sse_decode(deserializer);
                let mut var_value = <String>::sse_decode(deserializer);
                return crate::AnnotationKind::Custom {
                    name: var_name,
                    value: var_value,
                };
            }
            _ => {
                unimplemented!("");
            }
        }
    }
}

impl SseDecode for crate::ArchiveEntry {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_path = <String>::sse_decode(deserializer);
        let mut var_mimeType = <String>::sse_decode(deserializer);
        let mut var_result = <crate::ExtractionResult>::sse_decode(deserializer);
        return crate::ArchiveEntry {
            path: var_path,
            mime_type: var_mimeType,
            result: var_result,
        };
    }
}

impl SseDecode for crate::ArchiveMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_format = <String>::sse_decode(deserializer);
        let mut var_fileCount = <i64>::sse_decode(deserializer);
        let mut var_fileList = <Vec<String>>::sse_decode(deserializer);
        let mut var_totalSize = <i64>::sse_decode(deserializer);
        let mut var_compressedSize = <Option<i64>>::sse_decode(deserializer);
        return crate::ArchiveMetadata {
            format: var_format,
            file_count: var_fileCount,
            file_list: var_fileList,
            total_size: var_totalSize,
            compressed_size: var_compressedSize,
        };
    }
}

impl SseDecode for crate::BBox {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_x1 = <f64>::sse_decode(deserializer);
        let mut var_y1 = <f64>::sse_decode(deserializer);
        let mut var_x2 = <f64>::sse_decode(deserializer);
        let mut var_y2 = <f64>::sse_decode(deserializer);
        return crate::BBox {
            x1: var_x1,
            y1: var_y1,
            x2: var_x2,
            y2: var_y2,
        };
    }
}

impl SseDecode for crate::BatchBytesItem {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_content = <Vec<u8>>::sse_decode(deserializer);
        let mut var_mimeType = <String>::sse_decode(deserializer);
        let mut var_config = <Option<crate::FileExtractionConfig>>::sse_decode(deserializer);
        return crate::BatchBytesItem {
            content: var_content,
            mime_type: var_mimeType,
            config: var_config,
        };
    }
}

impl SseDecode for crate::BatchFileItem {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_path = <String>::sse_decode(deserializer);
        let mut var_config = <Option<crate::FileExtractionConfig>>::sse_decode(deserializer);
        return crate::BatchFileItem {
            path: var_path,
            config: var_config,
        };
    }
}

impl SseDecode for crate::BibtexMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_entryCount = <i64>::sse_decode(deserializer);
        let mut var_citationKeys = <Vec<String>>::sse_decode(deserializer);
        let mut var_authors = <Vec<String>>::sse_decode(deserializer);
        let mut var_yearRange = <Option<crate::YearRange>>::sse_decode(deserializer);
        let mut var_entryTypes = <Option<std::collections::HashMap<String, i64>>>::sse_decode(deserializer);
        return crate::BibtexMetadata {
            entry_count: var_entryCount,
            citation_keys: var_citationKeys,
            authors: var_authors,
            year_range: var_yearRange,
            entry_types: var_entryTypes,
        };
    }
}

impl SseDecode for crate::BlockType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::BlockType::Paragraph,
            1 => crate::BlockType::Heading,
            2 => crate::BlockType::Blockquote,
            3 => crate::BlockType::CodeBlock,
            4 => crate::BlockType::ListItem,
            5 => crate::BlockType::OrderedList,
            6 => crate::BlockType::BulletList,
            7 => crate::BlockType::TaskList,
            8 => crate::BlockType::DefinitionList,
            9 => crate::BlockType::DefinitionTerm,
            10 => crate::BlockType::DefinitionDescription,
            11 => crate::BlockType::Div,
            12 => crate::BlockType::Section,
            13 => crate::BlockType::ThematicBreak,
            14 => crate::BlockType::RawBlock,
            15 => crate::BlockType::MathDisplay,
            _ => unreachable!("Invalid variant for BlockType: {}", inner),
        };
    }
}

impl SseDecode for bool {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        deserializer.cursor.read_u8().unwrap() != 0
    }
}

impl SseDecode for crate::BoundingBox {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_x0 = <f64>::sse_decode(deserializer);
        let mut var_y0 = <f64>::sse_decode(deserializer);
        let mut var_x1 = <f64>::sse_decode(deserializer);
        let mut var_y1 = <f64>::sse_decode(deserializer);
        return crate::BoundingBox {
            x0: var_x0,
            y0: var_y0,
            x1: var_x1,
            y1: var_y1,
        };
    }
}

impl SseDecode for crate::CacheStats {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_totalFiles = <i64>::sse_decode(deserializer);
        let mut var_totalSizeMb = <f64>::sse_decode(deserializer);
        let mut var_availableSpaceMb = <f64>::sse_decode(deserializer);
        let mut var_oldestFileAgeDays = <f64>::sse_decode(deserializer);
        let mut var_newestFileAgeDays = <f64>::sse_decode(deserializer);
        return crate::CacheStats {
            total_files: var_totalFiles,
            total_size_mb: var_totalSizeMb,
            available_space_mb: var_availableSpaceMb,
            oldest_file_age_days: var_oldestFileAgeDays,
            newest_file_age_days: var_newestFileAgeDays,
        };
    }
}

impl SseDecode for crate::CellChange {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_row = <i64>::sse_decode(deserializer);
        let mut var_col = <i64>::sse_decode(deserializer);
        let mut var_from = <String>::sse_decode(deserializer);
        let mut var_to = <String>::sse_decode(deserializer);
        return crate::CellChange {
            row: var_row,
            col: var_col,
            from: var_from,
            to: var_to,
        };
    }
}

impl SseDecode for crate::Chunk {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_content = <String>::sse_decode(deserializer);
        let mut var_chunkType = <crate::ChunkType>::sse_decode(deserializer);
        let mut var_embedding = <Option<Vec<f64>>>::sse_decode(deserializer);
        let mut var_metadata = <crate::ChunkMetadata>::sse_decode(deserializer);
        return crate::Chunk {
            content: var_content,
            chunk_type: var_chunkType,
            embedding: var_embedding,
            metadata: var_metadata,
        };
    }
}

impl SseDecode for crate::ChunkMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_byteStart = <i64>::sse_decode(deserializer);
        let mut var_byteEnd = <i64>::sse_decode(deserializer);
        let mut var_tokenCount = <Option<i64>>::sse_decode(deserializer);
        let mut var_chunkIndex = <i64>::sse_decode(deserializer);
        let mut var_totalChunks = <i64>::sse_decode(deserializer);
        let mut var_firstPage = <Option<i64>>::sse_decode(deserializer);
        let mut var_lastPage = <Option<i64>>::sse_decode(deserializer);
        let mut var_headingContext = <Option<crate::HeadingContext>>::sse_decode(deserializer);
        let mut var_imageIndices = <Vec<i64>>::sse_decode(deserializer);
        return crate::ChunkMetadata {
            byte_start: var_byteStart,
            byte_end: var_byteEnd,
            token_count: var_tokenCount,
            chunk_index: var_chunkIndex,
            total_chunks: var_totalChunks,
            first_page: var_firstPage,
            last_page: var_lastPage,
            heading_context: var_headingContext,
            image_indices: var_imageIndices,
        };
    }
}

impl SseDecode for crate::ChunkSizing {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut tag_ = <i32>::sse_decode(deserializer);
        match tag_ {
            0 => {
                return crate::ChunkSizing::Characters;
            }
            1 => {
                let mut var_model = <String>::sse_decode(deserializer);
                let mut var_cacheDir = <String>::sse_decode(deserializer);
                return crate::ChunkSizing::Tokenizer {
                    model: var_model,
                    cache_dir: var_cacheDir,
                };
            }
            _ => {
                unimplemented!("");
            }
        }
    }
}

impl SseDecode for crate::ChunkType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::ChunkType::Heading,
            1 => crate::ChunkType::PartyList,
            2 => crate::ChunkType::Definitions,
            3 => crate::ChunkType::OperativeClause,
            4 => crate::ChunkType::SignatureBlock,
            5 => crate::ChunkType::Schedule,
            6 => crate::ChunkType::TableLike,
            7 => crate::ChunkType::Formula,
            8 => crate::ChunkType::CodeBlock,
            9 => crate::ChunkType::Image,
            10 => crate::ChunkType::OrgChart,
            11 => crate::ChunkType::Diagram,
            12 => crate::ChunkType::Unknown,
            _ => unreachable!("Invalid variant for ChunkType: {}", inner),
        };
    }
}

impl SseDecode for crate::ChunkerType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::ChunkerType::Text,
            1 => crate::ChunkerType::Markdown,
            2 => crate::ChunkerType::Yaml,
            3 => crate::ChunkerType::Semantic,
            _ => unreachable!("Invalid variant for ChunkerType: {}", inner),
        };
    }
}

impl SseDecode for crate::ChunkingConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_maxCharacters = <i64>::sse_decode(deserializer);
        let mut var_overlap = <i64>::sse_decode(deserializer);
        let mut var_trim = <bool>::sse_decode(deserializer);
        let mut var_chunkerType = <crate::ChunkerType>::sse_decode(deserializer);
        let mut var_embedding = <Option<crate::EmbeddingConfig>>::sse_decode(deserializer);
        let mut var_preset = <Option<String>>::sse_decode(deserializer);
        let mut var_sizing = <crate::ChunkSizing>::sse_decode(deserializer);
        let mut var_prependHeadingContext = <bool>::sse_decode(deserializer);
        let mut var_topicThreshold = <Option<f64>>::sse_decode(deserializer);
        return crate::ChunkingConfig {
            max_characters: var_maxCharacters,
            overlap: var_overlap,
            trim: var_trim,
            chunker_type: var_chunkerType,
            embedding: var_embedding,
            preset: var_preset,
            sizing: var_sizing,
            prepend_heading_context: var_prependHeadingContext,
            topic_threshold: var_topicThreshold,
        };
    }
}

impl SseDecode for crate::CitationMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_citationCount = <i64>::sse_decode(deserializer);
        let mut var_format = <Option<String>>::sse_decode(deserializer);
        let mut var_authors = <Vec<String>>::sse_decode(deserializer);
        let mut var_yearRange = <Option<crate::YearRange>>::sse_decode(deserializer);
        let mut var_dois = <Vec<String>>::sse_decode(deserializer);
        let mut var_keywords = <Vec<String>>::sse_decode(deserializer);
        return crate::CitationMetadata {
            citation_count: var_citationCount,
            format: var_format,
            authors: var_authors,
            year_range: var_yearRange,
            dois: var_dois,
            keywords: var_keywords,
        };
    }
}

impl SseDecode for crate::CodeContentMode {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::CodeContentMode::Chunks,
            1 => crate::CodeContentMode::Raw,
            2 => crate::CodeContentMode::Structure,
            _ => unreachable!("Invalid variant for CodeContentMode: {}", inner),
        };
    }
}

impl SseDecode for crate::ContentFilterConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_includeHeaders = <bool>::sse_decode(deserializer);
        let mut var_includeFooters = <bool>::sse_decode(deserializer);
        let mut var_stripRepeatingText = <bool>::sse_decode(deserializer);
        let mut var_includeWatermarks = <bool>::sse_decode(deserializer);
        return crate::ContentFilterConfig {
            include_headers: var_includeHeaders,
            include_footers: var_includeFooters,
            strip_repeating_text: var_stripRepeatingText,
            include_watermarks: var_includeWatermarks,
        };
    }
}

impl SseDecode for crate::ContentLayer {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::ContentLayer::Body,
            1 => crate::ContentLayer::Header,
            2 => crate::ContentLayer::Footer,
            3 => crate::ContentLayer::Footnote,
            _ => unreachable!("Invalid variant for ContentLayer: {}", inner),
        };
    }
}

impl SseDecode for crate::ContributorRole {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_name = <String>::sse_decode(deserializer);
        let mut var_role = <Option<String>>::sse_decode(deserializer);
        return crate::ContributorRole {
            name: var_name,
            role: var_role,
        };
    }
}

impl SseDecode for crate::CoreProperties {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_title = <Option<String>>::sse_decode(deserializer);
        let mut var_subject = <Option<String>>::sse_decode(deserializer);
        let mut var_creator = <Option<String>>::sse_decode(deserializer);
        let mut var_keywords = <Option<String>>::sse_decode(deserializer);
        let mut var_description = <Option<String>>::sse_decode(deserializer);
        let mut var_lastModifiedBy = <Option<String>>::sse_decode(deserializer);
        let mut var_revision = <Option<String>>::sse_decode(deserializer);
        let mut var_created = <Option<String>>::sse_decode(deserializer);
        let mut var_modified = <Option<String>>::sse_decode(deserializer);
        let mut var_category = <Option<String>>::sse_decode(deserializer);
        let mut var_contentStatus = <Option<String>>::sse_decode(deserializer);
        let mut var_language = <Option<String>>::sse_decode(deserializer);
        let mut var_identifier = <Option<String>>::sse_decode(deserializer);
        let mut var_version = <Option<String>>::sse_decode(deserializer);
        let mut var_lastPrinted = <Option<String>>::sse_decode(deserializer);
        return crate::CoreProperties {
            title: var_title,
            subject: var_subject,
            creator: var_creator,
            keywords: var_keywords,
            description: var_description,
            last_modified_by: var_lastModifiedBy,
            revision: var_revision,
            created: var_created,
            modified: var_modified,
            category: var_category,
            content_status: var_contentStatus,
            language: var_language,
            identifier: var_identifier,
            version: var_version,
            last_printed: var_lastPrinted,
        };
    }
}

impl SseDecode for crate::CsvMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_rowCount = <i64>::sse_decode(deserializer);
        let mut var_columnCount = <i64>::sse_decode(deserializer);
        let mut var_delimiter = <Option<String>>::sse_decode(deserializer);
        let mut var_hasHeader = <bool>::sse_decode(deserializer);
        let mut var_columnTypes = <Option<Vec<String>>>::sse_decode(deserializer);
        return crate::CsvMetadata {
            row_count: var_rowCount,
            column_count: var_columnCount,
            delimiter: var_delimiter,
            has_header: var_hasHeader,
            column_types: var_columnTypes,
        };
    }
}

impl SseDecode for crate::DbfFieldInfo {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_name = <String>::sse_decode(deserializer);
        let mut var_fieldType = <String>::sse_decode(deserializer);
        return crate::DbfFieldInfo {
            name: var_name,
            field_type: var_fieldType,
        };
    }
}

impl SseDecode for crate::DbfMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_recordCount = <i64>::sse_decode(deserializer);
        let mut var_fieldCount = <i64>::sse_decode(deserializer);
        let mut var_fields = <Vec<crate::DbfFieldInfo>>::sse_decode(deserializer);
        return crate::DbfMetadata {
            record_count: var_recordCount,
            field_count: var_fieldCount,
            fields: var_fields,
        };
    }
}

impl SseDecode for crate::DetectResponse {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_mimeType = <String>::sse_decode(deserializer);
        let mut var_filename = <Option<String>>::sse_decode(deserializer);
        return crate::DetectResponse {
            mime_type: var_mimeType,
            filename: var_filename,
        };
    }
}

impl SseDecode for crate::DetectionResult {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_pageWidth = <i64>::sse_decode(deserializer);
        let mut var_pageHeight = <i64>::sse_decode(deserializer);
        let mut var_detections = <Vec<crate::LayoutDetection>>::sse_decode(deserializer);
        return crate::DetectionResult {
            page_width: var_pageWidth,
            page_height: var_pageHeight,
            detections: var_detections,
        };
    }
}

impl SseDecode for crate::DiffHunk {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_fromLine = <i64>::sse_decode(deserializer);
        let mut var_fromCount = <i64>::sse_decode(deserializer);
        let mut var_toLine = <i64>::sse_decode(deserializer);
        let mut var_toCount = <i64>::sse_decode(deserializer);
        let mut var_lines = <Vec<crate::DiffLine>>::sse_decode(deserializer);
        return crate::DiffHunk {
            from_line: var_fromLine,
            from_count: var_fromCount,
            to_line: var_toLine,
            to_count: var_toCount,
            lines: var_lines,
        };
    }
}

impl SseDecode for crate::DiffLine {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut tag_ = <i32>::sse_decode(deserializer);
        match tag_ {
            0 => {
                let mut var_field0 = <String>::sse_decode(deserializer);
                return crate::DiffLine::Context { field0: var_field0 };
            }
            1 => {
                let mut var_field0 = <String>::sse_decode(deserializer);
                return crate::DiffLine::Added { field0: var_field0 };
            }
            2 => {
                let mut var_field0 = <String>::sse_decode(deserializer);
                return crate::DiffLine::Removed { field0: var_field0 };
            }
            _ => {
                unimplemented!("");
            }
        }
    }
}

impl SseDecode for crate::DiffOptions {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_includeMetadata = <bool>::sse_decode(deserializer);
        let mut var_includeEmbedded = <bool>::sse_decode(deserializer);
        let mut var_maxContentChars = <Option<i64>>::sse_decode(deserializer);
        return crate::DiffOptions {
            include_metadata: var_includeMetadata,
            include_embedded: var_includeEmbedded,
            max_content_chars: var_maxContentChars,
        };
    }
}

impl SseDecode for crate::DjotContent {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_plainText = <String>::sse_decode(deserializer);
        let mut var_blocks = <Vec<crate::FormattedBlock>>::sse_decode(deserializer);
        let mut var_metadata = <crate::Metadata>::sse_decode(deserializer);
        let mut var_tables = <Vec<crate::Table>>::sse_decode(deserializer);
        let mut var_images = <Vec<crate::DjotImage>>::sse_decode(deserializer);
        let mut var_links = <Vec<crate::DjotLink>>::sse_decode(deserializer);
        let mut var_footnotes = <Vec<crate::Footnote>>::sse_decode(deserializer);
        let mut var_attributes = <Vec<String>>::sse_decode(deserializer);
        return crate::DjotContent {
            plain_text: var_plainText,
            blocks: var_blocks,
            metadata: var_metadata,
            tables: var_tables,
            images: var_images,
            links: var_links,
            footnotes: var_footnotes,
            attributes: var_attributes,
        };
    }
}

impl SseDecode for crate::DjotImage {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_src = <String>::sse_decode(deserializer);
        let mut var_alt = <String>::sse_decode(deserializer);
        let mut var_title = <Option<String>>::sse_decode(deserializer);
        let mut var_attributes = <Option<String>>::sse_decode(deserializer);
        return crate::DjotImage {
            src: var_src,
            alt: var_alt,
            title: var_title,
            attributes: var_attributes,
        };
    }
}

impl SseDecode for crate::DjotLink {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_url = <String>::sse_decode(deserializer);
        let mut var_text = <String>::sse_decode(deserializer);
        let mut var_title = <Option<String>>::sse_decode(deserializer);
        let mut var_attributes = <Option<String>>::sse_decode(deserializer);
        return crate::DjotLink {
            url: var_url,
            text: var_text,
            title: var_title,
            attributes: var_attributes,
        };
    }
}

impl SseDecode for crate::DocumentNode {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_id = <String>::sse_decode(deserializer);
        let mut var_content = <crate::NodeContent>::sse_decode(deserializer);
        let mut var_parent = <Option<i64>>::sse_decode(deserializer);
        let mut var_children = <Vec<i64>>::sse_decode(deserializer);
        let mut var_contentLayer = <crate::ContentLayer>::sse_decode(deserializer);
        let mut var_page = <Option<i64>>::sse_decode(deserializer);
        let mut var_pageEnd = <Option<i64>>::sse_decode(deserializer);
        let mut var_bbox = <Option<crate::BoundingBox>>::sse_decode(deserializer);
        let mut var_annotations = <Vec<crate::TextAnnotation>>::sse_decode(deserializer);
        let mut var_attributes = <Option<std::collections::HashMap<String, String>>>::sse_decode(deserializer);
        return crate::DocumentNode {
            id: var_id,
            content: var_content,
            parent: var_parent,
            children: var_children,
            content_layer: var_contentLayer,
            page: var_page,
            page_end: var_pageEnd,
            bbox: var_bbox,
            annotations: var_annotations,
            attributes: var_attributes,
        };
    }
}

impl SseDecode for crate::DocumentRelationship {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_source = <i64>::sse_decode(deserializer);
        let mut var_target = <i64>::sse_decode(deserializer);
        let mut var_kind = <crate::RelationshipKind>::sse_decode(deserializer);
        return crate::DocumentRelationship {
            source: var_source,
            target: var_target,
            kind: var_kind,
        };
    }
}

impl SseDecode for crate::DocumentRevision {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_revisionId = <String>::sse_decode(deserializer);
        let mut var_author = <Option<String>>::sse_decode(deserializer);
        let mut var_timestamp = <Option<String>>::sse_decode(deserializer);
        let mut var_kind = <crate::RevisionKind>::sse_decode(deserializer);
        let mut var_anchor = <Option<crate::RevisionAnchor>>::sse_decode(deserializer);
        let mut var_delta = <crate::RevisionDelta>::sse_decode(deserializer);
        return crate::DocumentRevision {
            revision_id: var_revisionId,
            author: var_author,
            timestamp: var_timestamp,
            kind: var_kind,
            anchor: var_anchor,
            delta: var_delta,
        };
    }
}

impl SseDecode for crate::DocumentStructure {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_nodes = <Vec<crate::DocumentNode>>::sse_decode(deserializer);
        let mut var_sourceFormat = <Option<String>>::sse_decode(deserializer);
        let mut var_relationships = <Vec<crate::DocumentRelationship>>::sse_decode(deserializer);
        let mut var_nodeTypes = <Vec<String>>::sse_decode(deserializer);
        return crate::DocumentStructure {
            nodes: var_nodes,
            source_format: var_sourceFormat,
            relationships: var_relationships,
            node_types: var_nodeTypes,
        };
    }
}

impl SseDecode for crate::DocxAppProperties {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_application = <Option<String>>::sse_decode(deserializer);
        let mut var_appVersion = <Option<String>>::sse_decode(deserializer);
        let mut var_template = <Option<String>>::sse_decode(deserializer);
        let mut var_totalTime = <Option<i64>>::sse_decode(deserializer);
        let mut var_pages = <Option<i64>>::sse_decode(deserializer);
        let mut var_words = <Option<i64>>::sse_decode(deserializer);
        let mut var_characters = <Option<i64>>::sse_decode(deserializer);
        let mut var_charactersWithSpaces = <Option<i64>>::sse_decode(deserializer);
        let mut var_lines = <Option<i64>>::sse_decode(deserializer);
        let mut var_paragraphs = <Option<i64>>::sse_decode(deserializer);
        let mut var_company = <Option<String>>::sse_decode(deserializer);
        let mut var_docSecurity = <Option<i64>>::sse_decode(deserializer);
        let mut var_scaleCrop = <Option<bool>>::sse_decode(deserializer);
        let mut var_linksUpToDate = <Option<bool>>::sse_decode(deserializer);
        let mut var_sharedDoc = <Option<bool>>::sse_decode(deserializer);
        let mut var_hyperlinksChanged = <Option<bool>>::sse_decode(deserializer);
        return crate::DocxAppProperties {
            application: var_application,
            app_version: var_appVersion,
            template: var_template,
            total_time: var_totalTime,
            pages: var_pages,
            words: var_words,
            characters: var_characters,
            characters_with_spaces: var_charactersWithSpaces,
            lines: var_lines,
            paragraphs: var_paragraphs,
            company: var_company,
            doc_security: var_docSecurity,
            scale_crop: var_scaleCrop,
            links_up_to_date: var_linksUpToDate,
            shared_doc: var_sharedDoc,
            hyperlinks_changed: var_hyperlinksChanged,
        };
    }
}

impl SseDecode for crate::DocxMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_coreProperties = <Option<crate::CoreProperties>>::sse_decode(deserializer);
        let mut var_appProperties = <Option<crate::DocxAppProperties>>::sse_decode(deserializer);
        let mut var_customProperties = <Option<std::collections::HashMap<String, String>>>::sse_decode(deserializer);
        return crate::DocxMetadata {
            core_properties: var_coreProperties,
            app_properties: var_appProperties,
            custom_properties: var_customProperties,
        };
    }
}

impl SseDecode for crate::Element {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_elementId = <String>::sse_decode(deserializer);
        let mut var_elementType = <crate::ElementType>::sse_decode(deserializer);
        let mut var_text = <String>::sse_decode(deserializer);
        let mut var_metadata = <crate::ElementMetadata>::sse_decode(deserializer);
        return crate::Element {
            element_id: var_elementId,
            element_type: var_elementType,
            text: var_text,
            metadata: var_metadata,
        };
    }
}

impl SseDecode for crate::ElementMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_pageNumber = <Option<i64>>::sse_decode(deserializer);
        let mut var_filename = <Option<String>>::sse_decode(deserializer);
        let mut var_coordinates = <Option<crate::BoundingBox>>::sse_decode(deserializer);
        let mut var_elementIndex = <Option<i64>>::sse_decode(deserializer);
        let mut var_additional = <std::collections::HashMap<String, String>>::sse_decode(deserializer);
        return crate::ElementMetadata {
            page_number: var_pageNumber,
            filename: var_filename,
            coordinates: var_coordinates,
            element_index: var_elementIndex,
            additional: var_additional,
        };
    }
}

impl SseDecode for crate::ElementType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::ElementType::Title,
            1 => crate::ElementType::NarrativeText,
            2 => crate::ElementType::Heading,
            3 => crate::ElementType::ListItem,
            4 => crate::ElementType::Table,
            5 => crate::ElementType::Image,
            6 => crate::ElementType::PageBreak,
            7 => crate::ElementType::CodeBlock,
            8 => crate::ElementType::BlockQuote,
            9 => crate::ElementType::Footer,
            10 => crate::ElementType::Header,
            _ => unreachable!("Invalid variant for ElementType: {}", inner),
        };
    }
}

impl SseDecode for crate::EmailAttachment {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_name = <Option<String>>::sse_decode(deserializer);
        let mut var_filename = <Option<String>>::sse_decode(deserializer);
        let mut var_mimeType = <Option<String>>::sse_decode(deserializer);
        let mut var_size = <Option<i64>>::sse_decode(deserializer);
        let mut var_isImage = <bool>::sse_decode(deserializer);
        let mut var_data = <Option<Vec<u8>>>::sse_decode(deserializer);
        return crate::EmailAttachment {
            name: var_name,
            filename: var_filename,
            mime_type: var_mimeType,
            size: var_size,
            is_image: var_isImage,
            data: var_data,
        };
    }
}

impl SseDecode for crate::EmailConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_msgFallbackCodepage = <Option<i64>>::sse_decode(deserializer);
        return crate::EmailConfig {
            msg_fallback_codepage: var_msgFallbackCodepage,
        };
    }
}

impl SseDecode for crate::EmailExtractionResult {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_subject = <Option<String>>::sse_decode(deserializer);
        let mut var_fromEmail = <Option<String>>::sse_decode(deserializer);
        let mut var_toEmails = <Vec<String>>::sse_decode(deserializer);
        let mut var_ccEmails = <Vec<String>>::sse_decode(deserializer);
        let mut var_bccEmails = <Vec<String>>::sse_decode(deserializer);
        let mut var_date = <Option<String>>::sse_decode(deserializer);
        let mut var_messageId = <Option<String>>::sse_decode(deserializer);
        let mut var_plainText = <Option<String>>::sse_decode(deserializer);
        let mut var_htmlContent = <Option<String>>::sse_decode(deserializer);
        let mut var_content = <String>::sse_decode(deserializer);
        let mut var_attachments = <Vec<crate::EmailAttachment>>::sse_decode(deserializer);
        let mut var_metadata = <std::collections::HashMap<String, String>>::sse_decode(deserializer);
        return crate::EmailExtractionResult {
            subject: var_subject,
            from_email: var_fromEmail,
            to_emails: var_toEmails,
            cc_emails: var_ccEmails,
            bcc_emails: var_bccEmails,
            date: var_date,
            message_id: var_messageId,
            plain_text: var_plainText,
            html_content: var_htmlContent,
            content: var_content,
            attachments: var_attachments,
            metadata: var_metadata,
        };
    }
}

impl SseDecode for crate::EmailMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_fromEmail = <Option<String>>::sse_decode(deserializer);
        let mut var_fromName = <Option<String>>::sse_decode(deserializer);
        let mut var_toEmails = <Vec<String>>::sse_decode(deserializer);
        let mut var_ccEmails = <Vec<String>>::sse_decode(deserializer);
        let mut var_bccEmails = <Vec<String>>::sse_decode(deserializer);
        let mut var_messageId = <Option<String>>::sse_decode(deserializer);
        let mut var_attachments = <Vec<String>>::sse_decode(deserializer);
        return crate::EmailMetadata {
            from_email: var_fromEmail,
            from_name: var_fromName,
            to_emails: var_toEmails,
            cc_emails: var_ccEmails,
            bcc_emails: var_bccEmails,
            message_id: var_messageId,
            attachments: var_attachments,
        };
    }
}

impl SseDecode for crate::EmbeddedChanges {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_added = <Vec<crate::ArchiveEntry>>::sse_decode(deserializer);
        let mut var_removed = <Vec<crate::ArchiveEntry>>::sse_decode(deserializer);
        let mut var_changed = <Vec<crate::EmbeddedDiff>>::sse_decode(deserializer);
        return crate::EmbeddedChanges {
            added: var_added,
            removed: var_removed,
            changed: var_changed,
        };
    }
}

impl SseDecode for crate::EmbeddedDiff {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_path = <String>::sse_decode(deserializer);
        let mut var_diff = <crate::ExtractionDiff>::sse_decode(deserializer);
        return crate::EmbeddedDiff {
            path: var_path,
            diff: var_diff,
        };
    }
}

impl SseDecode for crate::EmbeddedFile {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_name = <String>::sse_decode(deserializer);
        let mut var_data = <Vec<u8>>::sse_decode(deserializer);
        let mut var_compressedSize = <i64>::sse_decode(deserializer);
        let mut var_mimeType = <Option<String>>::sse_decode(deserializer);
        return crate::EmbeddedFile {
            name: var_name,
            data: var_data,
            compressed_size: var_compressedSize,
            mime_type: var_mimeType,
        };
    }
}

impl SseDecode for crate::EmbeddingConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_model = <crate::EmbeddingModelType>::sse_decode(deserializer);
        let mut var_normalize = <bool>::sse_decode(deserializer);
        let mut var_batchSize = <i64>::sse_decode(deserializer);
        let mut var_showDownloadProgress = <bool>::sse_decode(deserializer);
        let mut var_cacheDir = <Option<String>>::sse_decode(deserializer);
        let mut var_acceleration = <Option<crate::AccelerationConfig>>::sse_decode(deserializer);
        let mut var_maxEmbedDurationSecs = <Option<i64>>::sse_decode(deserializer);
        return crate::EmbeddingConfig {
            model: var_model,
            normalize: var_normalize,
            batch_size: var_batchSize,
            show_download_progress: var_showDownloadProgress,
            cache_dir: var_cacheDir,
            acceleration: var_acceleration,
            max_embed_duration_secs: var_maxEmbedDurationSecs,
        };
    }
}

impl SseDecode for crate::EmbeddingModelType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut tag_ = <i32>::sse_decode(deserializer);
        match tag_ {
            0 => {
                let mut var_name = <String>::sse_decode(deserializer);
                return crate::EmbeddingModelType::Preset { name: var_name };
            }
            1 => {
                let mut var_modelId = <String>::sse_decode(deserializer);
                let mut var_dimensions = <i64>::sse_decode(deserializer);
                return crate::EmbeddingModelType::Custom {
                    model_id: var_modelId,
                    dimensions: var_dimensions,
                };
            }
            2 => {
                let mut var_llm = <crate::LlmConfig>::sse_decode(deserializer);
                return crate::EmbeddingModelType::Llm { llm: var_llm };
            }
            3 => {
                let mut var_name = <String>::sse_decode(deserializer);
                return crate::EmbeddingModelType::Plugin { name: var_name };
            }
            _ => {
                unimplemented!("");
            }
        }
    }
}

impl SseDecode for crate::EmbeddingPreset {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_name = <String>::sse_decode(deserializer);
        let mut var_chunkSize = <i64>::sse_decode(deserializer);
        let mut var_overlap = <i64>::sse_decode(deserializer);
        let mut var_modelRepo = <String>::sse_decode(deserializer);
        let mut var_pooling = <String>::sse_decode(deserializer);
        let mut var_modelFile = <String>::sse_decode(deserializer);
        let mut var_dimensions = <i64>::sse_decode(deserializer);
        let mut var_description = <String>::sse_decode(deserializer);
        return crate::EmbeddingPreset {
            name: var_name,
            chunk_size: var_chunkSize,
            overlap: var_overlap,
            model_repo: var_modelRepo,
            pooling: var_pooling,
            model_file: var_modelFile,
            dimensions: var_dimensions,
            description: var_description,
        };
    }
}

impl SseDecode for crate::EpubMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_coverage = <Option<String>>::sse_decode(deserializer);
        let mut var_dcFormat = <Option<String>>::sse_decode(deserializer);
        let mut var_relation = <Option<String>>::sse_decode(deserializer);
        let mut var_source = <Option<String>>::sse_decode(deserializer);
        let mut var_dcType = <Option<String>>::sse_decode(deserializer);
        let mut var_coverImage = <Option<String>>::sse_decode(deserializer);
        return crate::EpubMetadata {
            coverage: var_coverage,
            dc_format: var_dcFormat,
            relation: var_relation,
            source: var_source,
            dc_type: var_dcType,
            cover_image: var_coverImage,
        };
    }
}

impl SseDecode for crate::ErrorMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_errorType = <String>::sse_decode(deserializer);
        let mut var_message = <String>::sse_decode(deserializer);
        return crate::ErrorMetadata {
            error_type: var_errorType,
            message: var_message,
        };
    }
}

impl SseDecode for crate::ExcelMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_sheetCount = <Option<i64>>::sse_decode(deserializer);
        let mut var_sheetNames = <Option<Vec<String>>>::sse_decode(deserializer);
        return crate::ExcelMetadata {
            sheet_count: var_sheetCount,
            sheet_names: var_sheetNames,
        };
    }
}

impl SseDecode for crate::ExcelSheet {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_name = <String>::sse_decode(deserializer);
        let mut var_markdown = <String>::sse_decode(deserializer);
        let mut var_rowCount = <i64>::sse_decode(deserializer);
        let mut var_colCount = <i64>::sse_decode(deserializer);
        let mut var_cellCount = <i64>::sse_decode(deserializer);
        let mut var_tableCells = <Option<Vec<Vec<String>>>>::sse_decode(deserializer);
        return crate::ExcelSheet {
            name: var_name,
            markdown: var_markdown,
            row_count: var_rowCount,
            col_count: var_colCount,
            cell_count: var_cellCount,
            table_cells: var_tableCells,
        };
    }
}

impl SseDecode for crate::ExcelWorkbook {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_sheets = <Vec<crate::ExcelSheet>>::sse_decode(deserializer);
        let mut var_metadata = <std::collections::HashMap<String, String>>::sse_decode(deserializer);
        let mut var_revisions = <Option<Vec<crate::DocumentRevision>>>::sse_decode(deserializer);
        return crate::ExcelWorkbook {
            sheets: var_sheets,
            metadata: var_metadata,
            revisions: var_revisions,
        };
    }
}

impl SseDecode for crate::ExecutionProviderType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::ExecutionProviderType::Auto,
            1 => crate::ExecutionProviderType::Cpu,
            2 => crate::ExecutionProviderType::CoreMl,
            3 => crate::ExecutionProviderType::Cuda,
            4 => crate::ExecutionProviderType::TensorRt,
            _ => unreachable!("Invalid variant for ExecutionProviderType: {}", inner),
        };
    }
}

impl SseDecode for crate::ExtractedImage {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_data = <Vec<u8>>::sse_decode(deserializer);
        let mut var_format = <String>::sse_decode(deserializer);
        let mut var_imageIndex = <i64>::sse_decode(deserializer);
        let mut var_pageNumber = <Option<i64>>::sse_decode(deserializer);
        let mut var_width = <Option<i64>>::sse_decode(deserializer);
        let mut var_height = <Option<i64>>::sse_decode(deserializer);
        let mut var_colorspace = <Option<String>>::sse_decode(deserializer);
        let mut var_bitsPerComponent = <Option<i64>>::sse_decode(deserializer);
        let mut var_isMask = <bool>::sse_decode(deserializer);
        let mut var_description = <Option<String>>::sse_decode(deserializer);
        let mut var_ocrResult = <Option<crate::ExtractionResult>>::sse_decode(deserializer);
        let mut var_boundingBox = <Option<crate::BoundingBox>>::sse_decode(deserializer);
        let mut var_sourcePath = <Option<String>>::sse_decode(deserializer);
        let mut var_imageKind = <Option<crate::ImageKind>>::sse_decode(deserializer);
        let mut var_kindConfidence = <Option<f64>>::sse_decode(deserializer);
        let mut var_clusterId = <Option<i64>>::sse_decode(deserializer);
        return crate::ExtractedImage {
            data: var_data,
            format: var_format,
            image_index: var_imageIndex,
            page_number: var_pageNumber,
            width: var_width,
            height: var_height,
            colorspace: var_colorspace,
            bits_per_component: var_bitsPerComponent,
            is_mask: var_isMask,
            description: var_description,
            ocr_result: var_ocrResult,
            bounding_box: var_boundingBox,
            source_path: var_sourcePath,
            image_kind: var_imageKind,
            kind_confidence: var_kindConfidence,
            cluster_id: var_clusterId,
        };
    }
}

impl SseDecode for crate::ExtractedUri {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_url = <String>::sse_decode(deserializer);
        let mut var_label = <Option<String>>::sse_decode(deserializer);
        let mut var_page = <Option<i64>>::sse_decode(deserializer);
        let mut var_kind = <crate::UriKind>::sse_decode(deserializer);
        return crate::ExtractedUri {
            url: var_url,
            label: var_label,
            page: var_page,
            kind: var_kind,
        };
    }
}

impl SseDecode for crate::ExtractionConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_useCache = <bool>::sse_decode(deserializer);
        let mut var_enableQualityProcessing = <bool>::sse_decode(deserializer);
        let mut var_ocr = <Option<crate::OcrConfig>>::sse_decode(deserializer);
        let mut var_forceOcr = <bool>::sse_decode(deserializer);
        let mut var_forceOcrPages = <Option<Vec<i64>>>::sse_decode(deserializer);
        let mut var_disableOcr = <bool>::sse_decode(deserializer);
        let mut var_chunking = <Option<crate::ChunkingConfig>>::sse_decode(deserializer);
        let mut var_contentFilter = <Option<crate::ContentFilterConfig>>::sse_decode(deserializer);
        let mut var_images = <Option<crate::ImageExtractionConfig>>::sse_decode(deserializer);
        let mut var_pdfOptions = <Option<crate::PdfConfig>>::sse_decode(deserializer);
        let mut var_tokenReduction = <Option<crate::TokenReductionOptions>>::sse_decode(deserializer);
        let mut var_languageDetection = <Option<crate::LanguageDetectionConfig>>::sse_decode(deserializer);
        let mut var_pages = <Option<crate::PageConfig>>::sse_decode(deserializer);
        let mut var_keywords = <Option<crate::KeywordConfig>>::sse_decode(deserializer);
        let mut var_postprocessor = <Option<crate::PostProcessorConfig>>::sse_decode(deserializer);
        let mut var_htmlOptions = <Option<String>>::sse_decode(deserializer);
        let mut var_htmlOutput = <Option<crate::HtmlOutputConfig>>::sse_decode(deserializer);
        let mut var_extractionTimeoutSecs = <Option<i64>>::sse_decode(deserializer);
        let mut var_maxConcurrentExtractions = <Option<i64>>::sse_decode(deserializer);
        let mut var_resultFormat = <crate::ResultFormat>::sse_decode(deserializer);
        let mut var_securityLimits = <Option<crate::SecurityLimits>>::sse_decode(deserializer);
        let mut var_maxEmbeddedFileBytes = <Option<i64>>::sse_decode(deserializer);
        let mut var_outputFormat = <crate::OutputFormat>::sse_decode(deserializer);
        let mut var_layout = <Option<crate::LayoutDetectionConfig>>::sse_decode(deserializer);
        let mut var_useLayoutForMarkdown = <bool>::sse_decode(deserializer);
        let mut var_includeDocumentStructure = <bool>::sse_decode(deserializer);
        let mut var_acceleration = <Option<crate::AccelerationConfig>>::sse_decode(deserializer);
        let mut var_cacheNamespace = <Option<String>>::sse_decode(deserializer);
        let mut var_cacheTtlSecs = <Option<i64>>::sse_decode(deserializer);
        let mut var_email = <Option<crate::EmailConfig>>::sse_decode(deserializer);
        let mut var_concurrency = <Option<String>>::sse_decode(deserializer);
        let mut var_maxArchiveDepth = <i64>::sse_decode(deserializer);
        let mut var_treeSitter = <Option<crate::TreeSitterConfig>>::sse_decode(deserializer);
        let mut var_structuredExtraction = <Option<crate::StructuredExtractionConfig>>::sse_decode(deserializer);
        let mut var_cancelToken = <Option<String>>::sse_decode(deserializer);
        return crate::ExtractionConfig {
            use_cache: var_useCache,
            enable_quality_processing: var_enableQualityProcessing,
            ocr: var_ocr,
            force_ocr: var_forceOcr,
            force_ocr_pages: var_forceOcrPages,
            disable_ocr: var_disableOcr,
            chunking: var_chunking,
            content_filter: var_contentFilter,
            images: var_images,
            pdf_options: var_pdfOptions,
            token_reduction: var_tokenReduction,
            language_detection: var_languageDetection,
            pages: var_pages,
            keywords: var_keywords,
            postprocessor: var_postprocessor,
            html_options: var_htmlOptions,
            html_output: var_htmlOutput,
            extraction_timeout_secs: var_extractionTimeoutSecs,
            max_concurrent_extractions: var_maxConcurrentExtractions,
            result_format: var_resultFormat,
            security_limits: var_securityLimits,
            max_embedded_file_bytes: var_maxEmbeddedFileBytes,
            output_format: var_outputFormat,
            layout: var_layout,
            use_layout_for_markdown: var_useLayoutForMarkdown,
            include_document_structure: var_includeDocumentStructure,
            acceleration: var_acceleration,
            cache_namespace: var_cacheNamespace,
            cache_ttl_secs: var_cacheTtlSecs,
            email: var_email,
            concurrency: var_concurrency,
            max_archive_depth: var_maxArchiveDepth,
            tree_sitter: var_treeSitter,
            structured_extraction: var_structuredExtraction,
            cancel_token: var_cancelToken,
        };
    }
}

impl SseDecode for crate::ExtractionDiff {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_contentDiff = <Vec<crate::DiffHunk>>::sse_decode(deserializer);
        let mut var_tablesAdded = <Vec<crate::Table>>::sse_decode(deserializer);
        let mut var_tablesRemoved = <Vec<crate::Table>>::sse_decode(deserializer);
        let mut var_tablesChanged = <Vec<crate::TableDiff>>::sse_decode(deserializer);
        let mut var_metadataChanged = <String>::sse_decode(deserializer);
        let mut var_embeddedChanges = <crate::EmbeddedChanges>::sse_decode(deserializer);
        return crate::ExtractionDiff {
            content_diff: var_contentDiff,
            tables_added: var_tablesAdded,
            tables_removed: var_tablesRemoved,
            tables_changed: var_tablesChanged,
            metadata_changed: var_metadataChanged,
            embedded_changes: var_embeddedChanges,
        };
    }
}

impl SseDecode for crate::ExtractionMethod {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::ExtractionMethod::Native,
            1 => crate::ExtractionMethod::Ocr,
            2 => crate::ExtractionMethod::Mixed,
            _ => unreachable!("Invalid variant for ExtractionMethod: {}", inner),
        };
    }
}

impl SseDecode for crate::ExtractionResult {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_content = <String>::sse_decode(deserializer);
        let mut var_mimeType = <String>::sse_decode(deserializer);
        let mut var_metadata = <crate::Metadata>::sse_decode(deserializer);
        let mut var_extractionMethod = <Option<crate::ExtractionMethod>>::sse_decode(deserializer);
        let mut var_tables = <Vec<crate::Table>>::sse_decode(deserializer);
        let mut var_detectedLanguages = <Option<Vec<String>>>::sse_decode(deserializer);
        let mut var_chunks = <Option<Vec<crate::Chunk>>>::sse_decode(deserializer);
        let mut var_images = <Option<Vec<crate::ExtractedImage>>>::sse_decode(deserializer);
        let mut var_pages = <Option<Vec<crate::PageContent>>>::sse_decode(deserializer);
        let mut var_elements = <Option<Vec<crate::Element>>>::sse_decode(deserializer);
        let mut var_djotContent = <Option<crate::DjotContent>>::sse_decode(deserializer);
        let mut var_ocrElements = <Option<Vec<crate::OcrElement>>>::sse_decode(deserializer);
        let mut var_document = <Option<crate::DocumentStructure>>::sse_decode(deserializer);
        let mut var_extractedKeywords = <Option<Vec<crate::Keyword>>>::sse_decode(deserializer);
        let mut var_qualityScore = <Option<f64>>::sse_decode(deserializer);
        let mut var_processingWarnings = <Vec<crate::ProcessingWarning>>::sse_decode(deserializer);
        let mut var_annotations = <Option<Vec<crate::PdfAnnotation>>>::sse_decode(deserializer);
        let mut var_children = <Option<Vec<crate::ArchiveEntry>>>::sse_decode(deserializer);
        let mut var_uris = <Option<Vec<crate::ExtractedUri>>>::sse_decode(deserializer);
        let mut var_revisions = <Option<Vec<crate::DocumentRevision>>>::sse_decode(deserializer);
        let mut var_structuredOutput = <Option<String>>::sse_decode(deserializer);
        let mut var_codeIntelligence = <Option<String>>::sse_decode(deserializer);
        let mut var_llmUsage = <Option<Vec<crate::LlmUsage>>>::sse_decode(deserializer);
        let mut var_formattedContent = <Option<String>>::sse_decode(deserializer);
        let mut var_ocrInternalDocument = <Option<String>>::sse_decode(deserializer);
        return crate::ExtractionResult {
            content: var_content,
            mime_type: var_mimeType,
            metadata: var_metadata,
            extraction_method: var_extractionMethod,
            tables: var_tables,
            detected_languages: var_detectedLanguages,
            chunks: var_chunks,
            images: var_images,
            pages: var_pages,
            elements: var_elements,
            djot_content: var_djotContent,
            ocr_elements: var_ocrElements,
            document: var_document,
            extracted_keywords: var_extractedKeywords,
            quality_score: var_qualityScore,
            processing_warnings: var_processingWarnings,
            annotations: var_annotations,
            children: var_children,
            uris: var_uris,
            revisions: var_revisions,
            structured_output: var_structuredOutput,
            code_intelligence: var_codeIntelligence,
            llm_usage: var_llmUsage,
            formatted_content: var_formattedContent,
            ocr_internal_document: var_ocrInternalDocument,
        };
    }
}

impl SseDecode for f64 {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        deserializer.cursor.read_f64::<NativeEndian>().unwrap()
    }
}

impl SseDecode for crate::FictionBookMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_genres = <Vec<String>>::sse_decode(deserializer);
        let mut var_sequences = <Vec<String>>::sse_decode(deserializer);
        let mut var_annotation = <Option<String>>::sse_decode(deserializer);
        return crate::FictionBookMetadata {
            genres: var_genres,
            sequences: var_sequences,
            annotation: var_annotation,
        };
    }
}

impl SseDecode for crate::FileExtractionConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_enableQualityProcessing = <Option<bool>>::sse_decode(deserializer);
        let mut var_ocr = <Option<crate::OcrConfig>>::sse_decode(deserializer);
        let mut var_forceOcr = <Option<bool>>::sse_decode(deserializer);
        let mut var_forceOcrPages = <Option<Vec<i64>>>::sse_decode(deserializer);
        let mut var_disableOcr = <Option<bool>>::sse_decode(deserializer);
        let mut var_chunking = <Option<crate::ChunkingConfig>>::sse_decode(deserializer);
        let mut var_contentFilter = <Option<crate::ContentFilterConfig>>::sse_decode(deserializer);
        let mut var_images = <Option<crate::ImageExtractionConfig>>::sse_decode(deserializer);
        let mut var_pdfOptions = <Option<crate::PdfConfig>>::sse_decode(deserializer);
        let mut var_tokenReduction = <Option<crate::TokenReductionOptions>>::sse_decode(deserializer);
        let mut var_languageDetection = <Option<crate::LanguageDetectionConfig>>::sse_decode(deserializer);
        let mut var_pages = <Option<crate::PageConfig>>::sse_decode(deserializer);
        let mut var_keywords = <Option<crate::KeywordConfig>>::sse_decode(deserializer);
        let mut var_postprocessor = <Option<crate::PostProcessorConfig>>::sse_decode(deserializer);
        let mut var_htmlOptions = <Option<String>>::sse_decode(deserializer);
        let mut var_resultFormat = <Option<crate::ResultFormat>>::sse_decode(deserializer);
        let mut var_outputFormat = <Option<crate::OutputFormat>>::sse_decode(deserializer);
        let mut var_includeDocumentStructure = <Option<bool>>::sse_decode(deserializer);
        let mut var_layout = <Option<crate::LayoutDetectionConfig>>::sse_decode(deserializer);
        let mut var_timeoutSecs = <Option<i64>>::sse_decode(deserializer);
        let mut var_treeSitter = <Option<crate::TreeSitterConfig>>::sse_decode(deserializer);
        let mut var_structuredExtraction = <Option<crate::StructuredExtractionConfig>>::sse_decode(deserializer);
        return crate::FileExtractionConfig {
            enable_quality_processing: var_enableQualityProcessing,
            ocr: var_ocr,
            force_ocr: var_forceOcr,
            force_ocr_pages: var_forceOcrPages,
            disable_ocr: var_disableOcr,
            chunking: var_chunking,
            content_filter: var_contentFilter,
            images: var_images,
            pdf_options: var_pdfOptions,
            token_reduction: var_tokenReduction,
            language_detection: var_languageDetection,
            pages: var_pages,
            keywords: var_keywords,
            postprocessor: var_postprocessor,
            html_options: var_htmlOptions,
            result_format: var_resultFormat,
            output_format: var_outputFormat,
            include_document_structure: var_includeDocumentStructure,
            layout: var_layout,
            timeout_secs: var_timeoutSecs,
            tree_sitter: var_treeSitter,
            structured_extraction: var_structuredExtraction,
        };
    }
}

impl SseDecode for crate::Footnote {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_label = <String>::sse_decode(deserializer);
        let mut var_content = <Vec<crate::FormattedBlock>>::sse_decode(deserializer);
        return crate::Footnote {
            label: var_label,
            content: var_content,
        };
    }
}

impl SseDecode for crate::FormatMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut tag_ = <i32>::sse_decode(deserializer);
        match tag_ {
            0 => {
                let mut var_field0 = <crate::PdfMetadata>::sse_decode(deserializer);
                return crate::FormatMetadata::Pdf { field0: var_field0 };
            }
            1 => {
                let mut var_field0 = <crate::DocxMetadata>::sse_decode(deserializer);
                return crate::FormatMetadata::Docx { field0: var_field0 };
            }
            2 => {
                let mut var_field0 = <crate::ExcelMetadata>::sse_decode(deserializer);
                return crate::FormatMetadata::Excel { field0: var_field0 };
            }
            3 => {
                let mut var_field0 = <crate::EmailMetadata>::sse_decode(deserializer);
                return crate::FormatMetadata::Email { field0: var_field0 };
            }
            4 => {
                let mut var_field0 = <crate::PptxMetadata>::sse_decode(deserializer);
                return crate::FormatMetadata::Pptx { field0: var_field0 };
            }
            5 => {
                let mut var_field0 = <crate::ArchiveMetadata>::sse_decode(deserializer);
                return crate::FormatMetadata::Archive { field0: var_field0 };
            }
            6 => {
                let mut var_field0 = <crate::ImageMetadata>::sse_decode(deserializer);
                return crate::FormatMetadata::Image { field0: var_field0 };
            }
            7 => {
                let mut var_field0 = <crate::XmlMetadata>::sse_decode(deserializer);
                return crate::FormatMetadata::Xml { field0: var_field0 };
            }
            8 => {
                let mut var_field0 = <crate::TextMetadata>::sse_decode(deserializer);
                return crate::FormatMetadata::Text { field0: var_field0 };
            }
            9 => {
                let mut var_field0 = <crate::HtmlMetadata>::sse_decode(deserializer);
                return crate::FormatMetadata::Html { field0: var_field0 };
            }
            10 => {
                let mut var_field0 = <crate::OcrMetadata>::sse_decode(deserializer);
                return crate::FormatMetadata::Ocr { field0: var_field0 };
            }
            11 => {
                let mut var_field0 = <crate::CsvMetadata>::sse_decode(deserializer);
                return crate::FormatMetadata::Csv { field0: var_field0 };
            }
            12 => {
                let mut var_field0 = <crate::BibtexMetadata>::sse_decode(deserializer);
                return crate::FormatMetadata::Bibtex { field0: var_field0 };
            }
            13 => {
                let mut var_field0 = <crate::CitationMetadata>::sse_decode(deserializer);
                return crate::FormatMetadata::Citation { field0: var_field0 };
            }
            14 => {
                let mut var_field0 = <crate::FictionBookMetadata>::sse_decode(deserializer);
                return crate::FormatMetadata::FictionBook { field0: var_field0 };
            }
            15 => {
                let mut var_field0 = <crate::DbfMetadata>::sse_decode(deserializer);
                return crate::FormatMetadata::Dbf { field0: var_field0 };
            }
            16 => {
                let mut var_field0 = <crate::JatsMetadata>::sse_decode(deserializer);
                return crate::FormatMetadata::Jats { field0: var_field0 };
            }
            17 => {
                let mut var_field0 = <crate::EpubMetadata>::sse_decode(deserializer);
                return crate::FormatMetadata::Epub { field0: var_field0 };
            }
            18 => {
                let mut var_field0 = <crate::PstMetadata>::sse_decode(deserializer);
                return crate::FormatMetadata::Pst { field0: var_field0 };
            }
            19 => {
                let mut var_field0 = <String>::sse_decode(deserializer);
                return crate::FormatMetadata::Code { field0: var_field0 };
            }
            _ => {
                unimplemented!("");
            }
        }
    }
}

impl SseDecode for crate::FormattedBlock {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_blockType = <crate::BlockType>::sse_decode(deserializer);
        let mut var_level = <Option<i64>>::sse_decode(deserializer);
        let mut var_inlineContent = <Vec<crate::InlineElement>>::sse_decode(deserializer);
        let mut var_attributes = <Option<String>>::sse_decode(deserializer);
        let mut var_language = <Option<String>>::sse_decode(deserializer);
        let mut var_code = <Option<String>>::sse_decode(deserializer);
        let mut var_children = <Vec<crate::FormattedBlock>>::sse_decode(deserializer);
        return crate::FormattedBlock {
            block_type: var_blockType,
            level: var_level,
            inline_content: var_inlineContent,
            attributes: var_attributes,
            language: var_language,
            code: var_code,
            children: var_children,
        };
    }
}

impl SseDecode for crate::GridCell {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_content = <String>::sse_decode(deserializer);
        let mut var_row = <i64>::sse_decode(deserializer);
        let mut var_col = <i64>::sse_decode(deserializer);
        let mut var_rowSpan = <i64>::sse_decode(deserializer);
        let mut var_colSpan = <i64>::sse_decode(deserializer);
        let mut var_isHeader = <bool>::sse_decode(deserializer);
        let mut var_bbox = <Option<crate::BoundingBox>>::sse_decode(deserializer);
        return crate::GridCell {
            content: var_content,
            row: var_row,
            col: var_col,
            row_span: var_rowSpan,
            col_span: var_colSpan,
            is_header: var_isHeader,
            bbox: var_bbox,
        };
    }
}

impl SseDecode for crate::HeaderMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_level = <i64>::sse_decode(deserializer);
        let mut var_text = <String>::sse_decode(deserializer);
        let mut var_id = <Option<String>>::sse_decode(deserializer);
        let mut var_depth = <i64>::sse_decode(deserializer);
        let mut var_htmlOffset = <i64>::sse_decode(deserializer);
        return crate::HeaderMetadata {
            level: var_level,
            text: var_text,
            id: var_id,
            depth: var_depth,
            html_offset: var_htmlOffset,
        };
    }
}

impl SseDecode for crate::HeadingContext {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_headings = <Vec<crate::HeadingLevel>>::sse_decode(deserializer);
        return crate::HeadingContext { headings: var_headings };
    }
}

impl SseDecode for crate::HeadingLevel {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_level = <i64>::sse_decode(deserializer);
        let mut var_text = <String>::sse_decode(deserializer);
        return crate::HeadingLevel {
            level: var_level,
            text: var_text,
        };
    }
}

impl SseDecode for crate::HierarchicalBlock {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_text = <String>::sse_decode(deserializer);
        let mut var_fontSize = <f64>::sse_decode(deserializer);
        let mut var_level = <String>::sse_decode(deserializer);
        let mut var_bbox = <Option<Vec<f64>>>::sse_decode(deserializer);
        return crate::HierarchicalBlock {
            text: var_text,
            font_size: var_fontSize,
            level: var_level,
            bbox: var_bbox,
        };
    }
}

impl SseDecode for crate::HierarchyConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_enabled = <bool>::sse_decode(deserializer);
        let mut var_kClusters = <i64>::sse_decode(deserializer);
        let mut var_includeBbox = <bool>::sse_decode(deserializer);
        let mut var_ocrCoverageThreshold = <Option<f64>>::sse_decode(deserializer);
        return crate::HierarchyConfig {
            enabled: var_enabled,
            k_clusters: var_kClusters,
            include_bbox: var_includeBbox,
            ocr_coverage_threshold: var_ocrCoverageThreshold,
        };
    }
}

impl SseDecode for crate::HtmlMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_title = <Option<String>>::sse_decode(deserializer);
        let mut var_description = <Option<String>>::sse_decode(deserializer);
        let mut var_keywords = <Vec<String>>::sse_decode(deserializer);
        let mut var_author = <Option<String>>::sse_decode(deserializer);
        let mut var_canonicalUrl = <Option<String>>::sse_decode(deserializer);
        let mut var_baseHref = <Option<String>>::sse_decode(deserializer);
        let mut var_language = <Option<String>>::sse_decode(deserializer);
        let mut var_textDirection = <Option<crate::TextDirection>>::sse_decode(deserializer);
        let mut var_openGraph = <std::collections::HashMap<String, String>>::sse_decode(deserializer);
        let mut var_twitterCard = <std::collections::HashMap<String, String>>::sse_decode(deserializer);
        let mut var_metaTags = <std::collections::HashMap<String, String>>::sse_decode(deserializer);
        let mut var_headers = <Vec<crate::HeaderMetadata>>::sse_decode(deserializer);
        let mut var_links = <Vec<crate::LinkMetadata>>::sse_decode(deserializer);
        let mut var_images = <Vec<crate::ImageMetadataType>>::sse_decode(deserializer);
        let mut var_structuredData = <Vec<crate::StructuredData>>::sse_decode(deserializer);
        return crate::HtmlMetadata {
            title: var_title,
            description: var_description,
            keywords: var_keywords,
            author: var_author,
            canonical_url: var_canonicalUrl,
            base_href: var_baseHref,
            language: var_language,
            text_direction: var_textDirection,
            open_graph: var_openGraph,
            twitter_card: var_twitterCard,
            meta_tags: var_metaTags,
            headers: var_headers,
            links: var_links,
            images: var_images,
            structured_data: var_structuredData,
        };
    }
}

impl SseDecode for crate::HtmlOutputConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_css = <Option<String>>::sse_decode(deserializer);
        let mut var_cssFile = <Option<String>>::sse_decode(deserializer);
        let mut var_theme = <crate::HtmlTheme>::sse_decode(deserializer);
        let mut var_classPrefix = <String>::sse_decode(deserializer);
        let mut var_embedCss = <bool>::sse_decode(deserializer);
        return crate::HtmlOutputConfig {
            css: var_css,
            css_file: var_cssFile,
            theme: var_theme,
            class_prefix: var_classPrefix,
            embed_css: var_embedCss,
        };
    }
}

impl SseDecode for crate::HtmlTheme {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::HtmlTheme::Default,
            1 => crate::HtmlTheme::GitHub,
            2 => crate::HtmlTheme::Dark,
            3 => crate::HtmlTheme::Light,
            4 => crate::HtmlTheme::Unstyled,
            _ => unreachable!("Invalid variant for HtmlTheme: {}", inner),
        };
    }
}

impl SseDecode for i32 {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        deserializer.cursor.read_i32::<NativeEndian>().unwrap()
    }
}

impl SseDecode for i64 {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        deserializer.cursor.read_i64::<NativeEndian>().unwrap()
    }
}

impl SseDecode for crate::ImageExtractionConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_extractImages = <bool>::sse_decode(deserializer);
        let mut var_targetDpi = <i64>::sse_decode(deserializer);
        let mut var_maxImageDimension = <i64>::sse_decode(deserializer);
        let mut var_injectPlaceholders = <bool>::sse_decode(deserializer);
        let mut var_autoAdjustDpi = <bool>::sse_decode(deserializer);
        let mut var_minDpi = <i64>::sse_decode(deserializer);
        let mut var_maxDpi = <i64>::sse_decode(deserializer);
        let mut var_maxImagesPerPage = <Option<i64>>::sse_decode(deserializer);
        let mut var_classify = <bool>::sse_decode(deserializer);
        let mut var_includePageRasters = <bool>::sse_decode(deserializer);
        let mut var_runOcrOnImages = <bool>::sse_decode(deserializer);
        let mut var_ocrTextOnly = <bool>::sse_decode(deserializer);
        let mut var_appendOcrText = <bool>::sse_decode(deserializer);
        return crate::ImageExtractionConfig {
            extract_images: var_extractImages,
            target_dpi: var_targetDpi,
            max_image_dimension: var_maxImageDimension,
            inject_placeholders: var_injectPlaceholders,
            auto_adjust_dpi: var_autoAdjustDpi,
            min_dpi: var_minDpi,
            max_dpi: var_maxDpi,
            max_images_per_page: var_maxImagesPerPage,
            classify: var_classify,
            include_page_rasters: var_includePageRasters,
            run_ocr_on_images: var_runOcrOnImages,
            ocr_text_only: var_ocrTextOnly,
            append_ocr_text: var_appendOcrText,
        };
    }
}

impl SseDecode for crate::ImageKind {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::ImageKind::Photograph,
            1 => crate::ImageKind::Diagram,
            2 => crate::ImageKind::Chart,
            3 => crate::ImageKind::Drawing,
            4 => crate::ImageKind::TextBlock,
            5 => crate::ImageKind::Decoration,
            6 => crate::ImageKind::Logo,
            7 => crate::ImageKind::Icon,
            8 => crate::ImageKind::TileFragment,
            9 => crate::ImageKind::Mask,
            10 => crate::ImageKind::PageRaster,
            11 => crate::ImageKind::Unknown,
            _ => unreachable!("Invalid variant for ImageKind: {}", inner),
        };
    }
}

impl SseDecode for crate::ImageMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_width = <i64>::sse_decode(deserializer);
        let mut var_height = <i64>::sse_decode(deserializer);
        let mut var_format = <String>::sse_decode(deserializer);
        let mut var_exif = <std::collections::HashMap<String, String>>::sse_decode(deserializer);
        return crate::ImageMetadata {
            width: var_width,
            height: var_height,
            format: var_format,
            exif: var_exif,
        };
    }
}

impl SseDecode for crate::ImageMetadataType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_src = <String>::sse_decode(deserializer);
        let mut var_alt = <Option<String>>::sse_decode(deserializer);
        let mut var_title = <Option<String>>::sse_decode(deserializer);
        let mut var_dimensions = <Option<Vec<i64>>>::sse_decode(deserializer);
        let mut var_imageType = <crate::ImageType>::sse_decode(deserializer);
        let mut var_attributes = <Vec<Vec<String>>>::sse_decode(deserializer);
        return crate::ImageMetadataType {
            src: var_src,
            alt: var_alt,
            title: var_title,
            dimensions: var_dimensions,
            image_type: var_imageType,
            attributes: var_attributes,
        };
    }
}

impl SseDecode for crate::ImagePreprocessingConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_targetDpi = <i64>::sse_decode(deserializer);
        let mut var_autoRotate = <bool>::sse_decode(deserializer);
        let mut var_deskew = <bool>::sse_decode(deserializer);
        let mut var_denoise = <bool>::sse_decode(deserializer);
        let mut var_contrastEnhance = <bool>::sse_decode(deserializer);
        let mut var_binarizationMethod = <String>::sse_decode(deserializer);
        let mut var_invertColors = <bool>::sse_decode(deserializer);
        return crate::ImagePreprocessingConfig {
            target_dpi: var_targetDpi,
            auto_rotate: var_autoRotate,
            deskew: var_deskew,
            denoise: var_denoise,
            contrast_enhance: var_contrastEnhance,
            binarization_method: var_binarizationMethod,
            invert_colors: var_invertColors,
        };
    }
}

impl SseDecode for crate::ImagePreprocessingMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_originalDimensions = <Vec<i64>>::sse_decode(deserializer);
        let mut var_originalDpi = <Vec<f64>>::sse_decode(deserializer);
        let mut var_targetDpi = <i64>::sse_decode(deserializer);
        let mut var_scaleFactor = <f64>::sse_decode(deserializer);
        let mut var_autoAdjusted = <bool>::sse_decode(deserializer);
        let mut var_finalDpi = <i64>::sse_decode(deserializer);
        let mut var_newDimensions = <Option<Vec<i64>>>::sse_decode(deserializer);
        let mut var_resampleMethod = <String>::sse_decode(deserializer);
        let mut var_dimensionClamped = <bool>::sse_decode(deserializer);
        let mut var_calculatedDpi = <Option<i64>>::sse_decode(deserializer);
        let mut var_skippedResize = <bool>::sse_decode(deserializer);
        let mut var_resizeError = <Option<String>>::sse_decode(deserializer);
        return crate::ImagePreprocessingMetadata {
            original_dimensions: var_originalDimensions,
            original_dpi: var_originalDpi,
            target_dpi: var_targetDpi,
            scale_factor: var_scaleFactor,
            auto_adjusted: var_autoAdjusted,
            final_dpi: var_finalDpi,
            new_dimensions: var_newDimensions,
            resample_method: var_resampleMethod,
            dimension_clamped: var_dimensionClamped,
            calculated_dpi: var_calculatedDpi,
            skipped_resize: var_skippedResize,
            resize_error: var_resizeError,
        };
    }
}

impl SseDecode for crate::ImageType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::ImageType::DataUri,
            1 => crate::ImageType::InlineSvg,
            2 => crate::ImageType::External,
            3 => crate::ImageType::Relative,
            _ => unreachable!("Invalid variant for ImageType: {}", inner),
        };
    }
}

impl SseDecode for crate::InlineElement {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_elementType = <crate::InlineType>::sse_decode(deserializer);
        let mut var_content = <String>::sse_decode(deserializer);
        let mut var_attributes = <Option<String>>::sse_decode(deserializer);
        let mut var_metadata = <Option<std::collections::HashMap<String, String>>>::sse_decode(deserializer);
        return crate::InlineElement {
            element_type: var_elementType,
            content: var_content,
            attributes: var_attributes,
            metadata: var_metadata,
        };
    }
}

impl SseDecode for crate::InlineType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::InlineType::Text,
            1 => crate::InlineType::Strong,
            2 => crate::InlineType::Emphasis,
            3 => crate::InlineType::Highlight,
            4 => crate::InlineType::Subscript,
            5 => crate::InlineType::Superscript,
            6 => crate::InlineType::Insert,
            7 => crate::InlineType::Delete,
            8 => crate::InlineType::Code,
            9 => crate::InlineType::Link,
            10 => crate::InlineType::Image,
            11 => crate::InlineType::Span,
            12 => crate::InlineType::Math,
            13 => crate::InlineType::RawInline,
            14 => crate::InlineType::FootnoteRef,
            15 => crate::InlineType::Symbol,
            _ => unreachable!("Invalid variant for InlineType: {}", inner),
        };
    }
}

impl SseDecode for crate::InternalDocumentBridge {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_json = <String>::sse_decode(deserializer);
        return crate::InternalDocumentBridge { json: var_json };
    }
}

impl SseDecode for isize {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        deserializer.cursor.read_i64::<NativeEndian>().unwrap() as _
    }
}

impl SseDecode for crate::JatsMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_copyright = <Option<String>>::sse_decode(deserializer);
        let mut var_license = <Option<String>>::sse_decode(deserializer);
        let mut var_historyDates = <std::collections::HashMap<String, String>>::sse_decode(deserializer);
        let mut var_contributorRoles = <Vec<crate::ContributorRole>>::sse_decode(deserializer);
        return crate::JatsMetadata {
            copyright: var_copyright,
            license: var_license,
            history_dates: var_historyDates,
            contributor_roles: var_contributorRoles,
        };
    }
}

impl SseDecode for crate::Keyword {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_text = <String>::sse_decode(deserializer);
        let mut var_score = <f64>::sse_decode(deserializer);
        let mut var_algorithm = <crate::KeywordAlgorithm>::sse_decode(deserializer);
        let mut var_positions = <Option<Vec<i64>>>::sse_decode(deserializer);
        return crate::Keyword {
            text: var_text,
            score: var_score,
            algorithm: var_algorithm,
            positions: var_positions,
        };
    }
}

impl SseDecode for crate::KeywordAlgorithm {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::KeywordAlgorithm::Yake,
            1 => crate::KeywordAlgorithm::Rake,
            _ => unreachable!("Invalid variant for KeywordAlgorithm: {}", inner),
        };
    }
}

impl SseDecode for crate::KeywordConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_algorithm = <crate::KeywordAlgorithm>::sse_decode(deserializer);
        let mut var_maxKeywords = <i64>::sse_decode(deserializer);
        let mut var_minScore = <f64>::sse_decode(deserializer);
        let mut var_ngramRange = <Vec<i64>>::sse_decode(deserializer);
        let mut var_language = <Option<String>>::sse_decode(deserializer);
        let mut var_yakeParams = <Option<crate::YakeParams>>::sse_decode(deserializer);
        let mut var_rakeParams = <Option<crate::RakeParams>>::sse_decode(deserializer);
        return crate::KeywordConfig {
            algorithm: var_algorithm,
            max_keywords: var_maxKeywords,
            min_score: var_minScore,
            ngram_range: var_ngramRange,
            language: var_language,
            yake_params: var_yakeParams,
            rake_params: var_rakeParams,
        };
    }
}

impl SseDecode for crate::LanguageDetectionConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_enabled = <bool>::sse_decode(deserializer);
        let mut var_minConfidence = <f64>::sse_decode(deserializer);
        let mut var_detectMultiple = <bool>::sse_decode(deserializer);
        return crate::LanguageDetectionConfig {
            enabled: var_enabled,
            min_confidence: var_minConfidence,
            detect_multiple: var_detectMultiple,
        };
    }
}

impl SseDecode for crate::LayoutClass {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::LayoutClass::Caption,
            1 => crate::LayoutClass::Footnote,
            2 => crate::LayoutClass::Formula,
            3 => crate::LayoutClass::ListItem,
            4 => crate::LayoutClass::PageFooter,
            5 => crate::LayoutClass::PageHeader,
            6 => crate::LayoutClass::Picture,
            7 => crate::LayoutClass::SectionHeader,
            8 => crate::LayoutClass::Table,
            9 => crate::LayoutClass::Text,
            10 => crate::LayoutClass::Title,
            11 => crate::LayoutClass::DocumentIndex,
            12 => crate::LayoutClass::Code,
            13 => crate::LayoutClass::CheckboxSelected,
            14 => crate::LayoutClass::CheckboxUnselected,
            15 => crate::LayoutClass::Form,
            16 => crate::LayoutClass::KeyValueRegion,
            _ => unreachable!("Invalid variant for LayoutClass: {}", inner),
        };
    }
}

impl SseDecode for crate::LayoutDetection {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_className = <crate::LayoutClass>::sse_decode(deserializer);
        let mut var_confidence = <f64>::sse_decode(deserializer);
        let mut var_bbox = <crate::BBox>::sse_decode(deserializer);
        return crate::LayoutDetection {
            class_name: var_className,
            confidence: var_confidence,
            bbox: var_bbox,
        };
    }
}

impl SseDecode for crate::LayoutDetectionConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_confidenceThreshold = <Option<f64>>::sse_decode(deserializer);
        let mut var_applyHeuristics = <bool>::sse_decode(deserializer);
        let mut var_tableModel = <crate::TableModel>::sse_decode(deserializer);
        let mut var_acceleration = <Option<crate::AccelerationConfig>>::sse_decode(deserializer);
        return crate::LayoutDetectionConfig {
            confidence_threshold: var_confidenceThreshold,
            apply_heuristics: var_applyHeuristics,
            table_model: var_tableModel,
            acceleration: var_acceleration,
        };
    }
}

impl SseDecode for crate::LayoutRegion {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_className = <String>::sse_decode(deserializer);
        let mut var_confidence = <f64>::sse_decode(deserializer);
        let mut var_boundingBox = <crate::BoundingBox>::sse_decode(deserializer);
        let mut var_areaFraction = <f64>::sse_decode(deserializer);
        return crate::LayoutRegion {
            class_name: var_className,
            confidence: var_confidence,
            bounding_box: var_boundingBox,
            area_fraction: var_areaFraction,
        };
    }
}

impl SseDecode for crate::LinkMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_href = <String>::sse_decode(deserializer);
        let mut var_text = <String>::sse_decode(deserializer);
        let mut var_title = <Option<String>>::sse_decode(deserializer);
        let mut var_linkType = <crate::LinkType>::sse_decode(deserializer);
        let mut var_rel = <Vec<String>>::sse_decode(deserializer);
        let mut var_attributes = <Vec<Vec<String>>>::sse_decode(deserializer);
        return crate::LinkMetadata {
            href: var_href,
            text: var_text,
            title: var_title,
            link_type: var_linkType,
            rel: var_rel,
            attributes: var_attributes,
        };
    }
}

impl SseDecode for crate::LinkType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::LinkType::Anchor,
            1 => crate::LinkType::Internal,
            2 => crate::LinkType::External,
            3 => crate::LinkType::Email,
            4 => crate::LinkType::Phone,
            5 => crate::LinkType::Other,
            _ => unreachable!("Invalid variant for LinkType: {}", inner),
        };
    }
}

impl SseDecode for Vec<String> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<String>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::ArchiveEntry> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::ArchiveEntry>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::BatchBytesItem> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::BatchBytesItem>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::BatchFileItem> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::BatchFileItem>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::CellChange> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::CellChange>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::Chunk> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::Chunk>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::ContributorRole> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::ContributorRole>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::DbfFieldInfo> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::DbfFieldInfo>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::DiffHunk> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::DiffHunk>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::DiffLine> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::DiffLine>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::DjotImage> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::DjotImage>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::DjotLink> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::DjotLink>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::DocumentNode> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::DocumentNode>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::DocumentRelationship> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::DocumentRelationship>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::DocumentRevision> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::DocumentRevision>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::Element> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::Element>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::EmailAttachment> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::EmailAttachment>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::EmbeddedDiff> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::EmbeddedDiff>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::ExcelSheet> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::ExcelSheet>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::ExtractedImage> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::ExtractedImage>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::ExtractedUri> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::ExtractedUri>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::ExtractionResult> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::ExtractionResult>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::Footnote> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::Footnote>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::FormattedBlock> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::FormattedBlock>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::GridCell> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::GridCell>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::HeaderMetadata> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::HeaderMetadata>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::HeadingLevel> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::HeadingLevel>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::HierarchicalBlock> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::HierarchicalBlock>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::ImageMetadataType> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::ImageMetadataType>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::InlineElement> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::InlineElement>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::Keyword> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::Keyword>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::LayoutDetection> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::LayoutDetection>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::LayoutRegion> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::LayoutRegion>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::LinkMetadata> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::LinkMetadata>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<Vec<String>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<Vec<String>>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<Vec<f64>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<Vec<f64>>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::LlmUsage> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::LlmUsage>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::OcrElement> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::OcrElement>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::OcrPipelineStage> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::OcrPipelineStage>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::OcrTable> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::OcrTable>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::PageBoundary> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::PageBoundary>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::PageContent> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::PageContent>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::PageInfo> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::PageInfo>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::PdfAnnotation> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::PdfAnnotation>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<f64> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<f64>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<i64> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<i64>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<u8> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<u8>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::ProcessingWarning> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::ProcessingWarning>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<(String, i64)> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<(String, i64)>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<(String, Vec<u8>)> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<(String, Vec<u8>)>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<(String, Vec<String>)> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<(String, Vec<String>)>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<(String, String)> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<(String, String)>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::StructuredData> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::StructuredData>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::Table> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::Table>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::TableDiff> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::TableDiff>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for Vec<crate::TextAnnotation> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut len_ = <i32>::sse_decode(deserializer);
        let mut ans_ = Vec::with_capacity(len_ as usize);
        for idx_ in 0..len_ {
            ans_.push(<crate::TextAnnotation>::sse_decode(deserializer));
        }
        return ans_;
    }
}

impl SseDecode for crate::LlmConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_model = <String>::sse_decode(deserializer);
        let mut var_apiKey = <Option<String>>::sse_decode(deserializer);
        let mut var_baseUrl = <Option<String>>::sse_decode(deserializer);
        let mut var_timeoutSecs = <Option<i64>>::sse_decode(deserializer);
        let mut var_maxRetries = <Option<i64>>::sse_decode(deserializer);
        let mut var_temperature = <Option<f64>>::sse_decode(deserializer);
        let mut var_maxTokens = <Option<i64>>::sse_decode(deserializer);
        return crate::LlmConfig {
            model: var_model,
            api_key: var_apiKey,
            base_url: var_baseUrl,
            timeout_secs: var_timeoutSecs,
            max_retries: var_maxRetries,
            temperature: var_temperature,
            max_tokens: var_maxTokens,
        };
    }
}

impl SseDecode for crate::LlmUsage {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_model = <String>::sse_decode(deserializer);
        let mut var_source = <String>::sse_decode(deserializer);
        let mut var_inputTokens = <Option<i64>>::sse_decode(deserializer);
        let mut var_outputTokens = <Option<i64>>::sse_decode(deserializer);
        let mut var_totalTokens = <Option<i64>>::sse_decode(deserializer);
        let mut var_estimatedCost = <Option<f64>>::sse_decode(deserializer);
        let mut var_finishReason = <Option<String>>::sse_decode(deserializer);
        return crate::LlmUsage {
            model: var_model,
            source: var_source,
            input_tokens: var_inputTokens,
            output_tokens: var_outputTokens,
            total_tokens: var_totalTokens,
            estimated_cost: var_estimatedCost,
            finish_reason: var_finishReason,
        };
    }
}

impl SseDecode for crate::Metadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_title = <Option<String>>::sse_decode(deserializer);
        let mut var_subject = <Option<String>>::sse_decode(deserializer);
        let mut var_authors = <Option<Vec<String>>>::sse_decode(deserializer);
        let mut var_keywords = <Option<Vec<String>>>::sse_decode(deserializer);
        let mut var_language = <Option<String>>::sse_decode(deserializer);
        let mut var_createdAt = <Option<String>>::sse_decode(deserializer);
        let mut var_modifiedAt = <Option<String>>::sse_decode(deserializer);
        let mut var_createdBy = <Option<String>>::sse_decode(deserializer);
        let mut var_modifiedBy = <Option<String>>::sse_decode(deserializer);
        let mut var_pages = <Option<crate::PageStructure>>::sse_decode(deserializer);
        let mut var_format = <Option<crate::FormatMetadata>>::sse_decode(deserializer);
        let mut var_imagePreprocessing = <Option<crate::ImagePreprocessingMetadata>>::sse_decode(deserializer);
        let mut var_jsonSchema = <Option<String>>::sse_decode(deserializer);
        let mut var_error = <Option<crate::ErrorMetadata>>::sse_decode(deserializer);
        let mut var_extractionDurationMs = <Option<i64>>::sse_decode(deserializer);
        let mut var_category = <Option<String>>::sse_decode(deserializer);
        let mut var_tags = <Option<Vec<String>>>::sse_decode(deserializer);
        let mut var_documentVersion = <Option<String>>::sse_decode(deserializer);
        let mut var_abstractText = <Option<String>>::sse_decode(deserializer);
        let mut var_outputFormat = <Option<String>>::sse_decode(deserializer);
        let mut var_ocrUsed = <bool>::sse_decode(deserializer);
        let mut var_additional = <std::collections::HashMap<String, String>>::sse_decode(deserializer);
        return crate::Metadata {
            title: var_title,
            subject: var_subject,
            authors: var_authors,
            keywords: var_keywords,
            language: var_language,
            created_at: var_createdAt,
            modified_at: var_modifiedAt,
            created_by: var_createdBy,
            modified_by: var_modifiedBy,
            pages: var_pages,
            format: var_format,
            image_preprocessing: var_imagePreprocessing,
            json_schema: var_jsonSchema,
            error: var_error,
            extraction_duration_ms: var_extractionDurationMs,
            category: var_category,
            tags: var_tags,
            document_version: var_documentVersion,
            abstract_text: var_abstractText,
            output_format: var_outputFormat,
            ocr_used: var_ocrUsed,
            additional: var_additional,
        };
    }
}

impl SseDecode for crate::ModelPaths {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_detModel = <String>::sse_decode(deserializer);
        let mut var_clsModel = <String>::sse_decode(deserializer);
        let mut var_recModel = <String>::sse_decode(deserializer);
        let mut var_dictFile = <String>::sse_decode(deserializer);
        return crate::ModelPaths {
            det_model: var_detModel,
            cls_model: var_clsModel,
            rec_model: var_recModel,
            dict_file: var_dictFile,
        };
    }
}

impl SseDecode for crate::NodeContent {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut tag_ = <i32>::sse_decode(deserializer);
        match tag_ {
            0 => {
                let mut var_text = <String>::sse_decode(deserializer);
                return crate::NodeContent::Title { text: var_text };
            }
            1 => {
                let mut var_level = <i64>::sse_decode(deserializer);
                let mut var_text = <String>::sse_decode(deserializer);
                return crate::NodeContent::Heading {
                    level: var_level,
                    text: var_text,
                };
            }
            2 => {
                let mut var_text = <String>::sse_decode(deserializer);
                return crate::NodeContent::Paragraph { text: var_text };
            }
            3 => {
                let mut var_ordered = <bool>::sse_decode(deserializer);
                return crate::NodeContent::List { ordered: var_ordered };
            }
            4 => {
                let mut var_text = <String>::sse_decode(deserializer);
                return crate::NodeContent::ListItem { text: var_text };
            }
            5 => {
                let mut var_grid = <crate::TableGrid>::sse_decode(deserializer);
                return crate::NodeContent::Table { grid: var_grid };
            }
            6 => {
                let mut var_description = <String>::sse_decode(deserializer);
                let mut var_imageIndex = <i64>::sse_decode(deserializer);
                let mut var_src = <String>::sse_decode(deserializer);
                return crate::NodeContent::Image {
                    description: var_description,
                    image_index: var_imageIndex,
                    src: var_src,
                };
            }
            7 => {
                let mut var_text = <String>::sse_decode(deserializer);
                let mut var_language = <String>::sse_decode(deserializer);
                return crate::NodeContent::Code {
                    text: var_text,
                    language: var_language,
                };
            }
            8 => {
                return crate::NodeContent::Quote;
            }
            9 => {
                let mut var_text = <String>::sse_decode(deserializer);
                return crate::NodeContent::Formula { text: var_text };
            }
            10 => {
                let mut var_text = <String>::sse_decode(deserializer);
                return crate::NodeContent::Footnote { text: var_text };
            }
            11 => {
                let mut var_label = <String>::sse_decode(deserializer);
                let mut var_headingLevel = <i64>::sse_decode(deserializer);
                let mut var_headingText = <String>::sse_decode(deserializer);
                return crate::NodeContent::Group {
                    label: var_label,
                    heading_level: var_headingLevel,
                    heading_text: var_headingText,
                };
            }
            12 => {
                return crate::NodeContent::PageBreak;
            }
            13 => {
                let mut var_number = <i64>::sse_decode(deserializer);
                let mut var_title = <String>::sse_decode(deserializer);
                return crate::NodeContent::Slide {
                    number: var_number,
                    title: var_title,
                };
            }
            14 => {
                return crate::NodeContent::DefinitionList;
            }
            15 => {
                let mut var_term = <String>::sse_decode(deserializer);
                let mut var_definition = <String>::sse_decode(deserializer);
                return crate::NodeContent::DefinitionItem {
                    term: var_term,
                    definition: var_definition,
                };
            }
            16 => {
                let mut var_key = <String>::sse_decode(deserializer);
                let mut var_text = <String>::sse_decode(deserializer);
                return crate::NodeContent::Citation {
                    key: var_key,
                    text: var_text,
                };
            }
            17 => {
                let mut var_kind = <String>::sse_decode(deserializer);
                let mut var_title = <String>::sse_decode(deserializer);
                return crate::NodeContent::Admonition {
                    kind: var_kind,
                    title: var_title,
                };
            }
            18 => {
                let mut var_format = <String>::sse_decode(deserializer);
                let mut var_content = <String>::sse_decode(deserializer);
                return crate::NodeContent::RawBlock {
                    format: var_format,
                    content: var_content,
                };
            }
            19 => {
                let mut var_entries = <Vec<Vec<String>>>::sse_decode(deserializer);
                return crate::NodeContent::MetadataBlock { entries: var_entries };
            }
            _ => {
                unimplemented!("");
            }
        }
    }
}

impl SseDecode for crate::OcrBackendType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::OcrBackendType::Tesseract,
            1 => crate::OcrBackendType::EasyOCR,
            2 => crate::OcrBackendType::PaddleOCR,
            3 => crate::OcrBackendType::Custom,
            _ => unreachable!("Invalid variant for OcrBackendType: {}", inner),
        };
    }
}

impl SseDecode for crate::OcrBoundingGeometry {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut tag_ = <i32>::sse_decode(deserializer);
        match tag_ {
            0 => {
                let mut var_left = <i64>::sse_decode(deserializer);
                let mut var_top = <i64>::sse_decode(deserializer);
                let mut var_width = <i64>::sse_decode(deserializer);
                let mut var_height = <i64>::sse_decode(deserializer);
                return crate::OcrBoundingGeometry::Rectangle {
                    left: var_left,
                    top: var_top,
                    width: var_width,
                    height: var_height,
                };
            }
            1 => {
                let mut var_points = <String>::sse_decode(deserializer);
                return crate::OcrBoundingGeometry::Quadrilateral { points: var_points };
            }
            _ => {
                unimplemented!("");
            }
        }
    }
}

impl SseDecode for crate::OcrConfidence {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_detection = <Option<f64>>::sse_decode(deserializer);
        let mut var_recognition = <f64>::sse_decode(deserializer);
        return crate::OcrConfidence {
            detection: var_detection,
            recognition: var_recognition,
        };
    }
}

impl SseDecode for crate::OcrConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_enabled = <bool>::sse_decode(deserializer);
        let mut var_backend = <String>::sse_decode(deserializer);
        let mut var_language = <String>::sse_decode(deserializer);
        let mut var_tesseractConfig = <Option<crate::TesseractConfig>>::sse_decode(deserializer);
        let mut var_outputFormat = <Option<crate::OutputFormat>>::sse_decode(deserializer);
        let mut var_paddleOcrConfig = <Option<String>>::sse_decode(deserializer);
        let mut var_backendOptions = <Option<String>>::sse_decode(deserializer);
        let mut var_elementConfig = <Option<crate::OcrElementConfig>>::sse_decode(deserializer);
        let mut var_qualityThresholds = <Option<crate::OcrQualityThresholds>>::sse_decode(deserializer);
        let mut var_pipeline = <Option<crate::OcrPipelineConfig>>::sse_decode(deserializer);
        let mut var_autoRotate = <bool>::sse_decode(deserializer);
        let mut var_vlmConfig = <Option<crate::LlmConfig>>::sse_decode(deserializer);
        let mut var_vlmPrompt = <Option<String>>::sse_decode(deserializer);
        let mut var_acceleration = <Option<crate::AccelerationConfig>>::sse_decode(deserializer);
        let mut var_tessdataBytes = <Option<std::collections::HashMap<String, Vec<u8>>>>::sse_decode(deserializer);
        return crate::OcrConfig {
            enabled: var_enabled,
            backend: var_backend,
            language: var_language,
            tesseract_config: var_tesseractConfig,
            output_format: var_outputFormat,
            paddle_ocr_config: var_paddleOcrConfig,
            backend_options: var_backendOptions,
            element_config: var_elementConfig,
            quality_thresholds: var_qualityThresholds,
            pipeline: var_pipeline,
            auto_rotate: var_autoRotate,
            vlm_config: var_vlmConfig,
            vlm_prompt: var_vlmPrompt,
            acceleration: var_acceleration,
            tessdata_bytes: var_tessdataBytes,
        };
    }
}

impl SseDecode for crate::OcrElement {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_text = <String>::sse_decode(deserializer);
        let mut var_geometry = <crate::OcrBoundingGeometry>::sse_decode(deserializer);
        let mut var_confidence = <crate::OcrConfidence>::sse_decode(deserializer);
        let mut var_level = <crate::OcrElementLevel>::sse_decode(deserializer);
        let mut var_rotation = <Option<crate::OcrRotation>>::sse_decode(deserializer);
        let mut var_pageNumber = <i64>::sse_decode(deserializer);
        let mut var_parentId = <Option<String>>::sse_decode(deserializer);
        let mut var_backendMetadata = <std::collections::HashMap<String, String>>::sse_decode(deserializer);
        return crate::OcrElement {
            text: var_text,
            geometry: var_geometry,
            confidence: var_confidence,
            level: var_level,
            rotation: var_rotation,
            page_number: var_pageNumber,
            parent_id: var_parentId,
            backend_metadata: var_backendMetadata,
        };
    }
}

impl SseDecode for crate::OcrElementConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_includeElements = <bool>::sse_decode(deserializer);
        let mut var_minLevel = <crate::OcrElementLevel>::sse_decode(deserializer);
        let mut var_minConfidence = <f64>::sse_decode(deserializer);
        let mut var_buildHierarchy = <bool>::sse_decode(deserializer);
        return crate::OcrElementConfig {
            include_elements: var_includeElements,
            min_level: var_minLevel,
            min_confidence: var_minConfidence,
            build_hierarchy: var_buildHierarchy,
        };
    }
}

impl SseDecode for crate::OcrElementLevel {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::OcrElementLevel::Word,
            1 => crate::OcrElementLevel::Line,
            2 => crate::OcrElementLevel::Block,
            3 => crate::OcrElementLevel::Page,
            _ => unreachable!("Invalid variant for OcrElementLevel: {}", inner),
        };
    }
}

impl SseDecode for crate::OcrExtractionResult {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_content = <String>::sse_decode(deserializer);
        let mut var_mimeType = <String>::sse_decode(deserializer);
        let mut var_metadata = <std::collections::HashMap<String, String>>::sse_decode(deserializer);
        let mut var_tables = <Vec<crate::OcrTable>>::sse_decode(deserializer);
        let mut var_ocrElements = <Option<Vec<crate::OcrElement>>>::sse_decode(deserializer);
        let mut var_internalDocument = <Option<String>>::sse_decode(deserializer);
        return crate::OcrExtractionResult {
            content: var_content,
            mime_type: var_mimeType,
            metadata: var_metadata,
            tables: var_tables,
            ocr_elements: var_ocrElements,
            internal_document: var_internalDocument,
        };
    }
}

impl SseDecode for crate::OcrMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_language = <String>::sse_decode(deserializer);
        let mut var_psm = <i64>::sse_decode(deserializer);
        let mut var_outputFormat = <String>::sse_decode(deserializer);
        let mut var_tableCount = <i64>::sse_decode(deserializer);
        let mut var_tableRows = <Option<i64>>::sse_decode(deserializer);
        let mut var_tableCols = <Option<i64>>::sse_decode(deserializer);
        return crate::OcrMetadata {
            language: var_language,
            psm: var_psm,
            output_format: var_outputFormat,
            table_count: var_tableCount,
            table_rows: var_tableRows,
            table_cols: var_tableCols,
        };
    }
}

impl SseDecode for crate::OcrPipelineConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_stages = <Vec<crate::OcrPipelineStage>>::sse_decode(deserializer);
        let mut var_qualityThresholds = <crate::OcrQualityThresholds>::sse_decode(deserializer);
        return crate::OcrPipelineConfig {
            stages: var_stages,
            quality_thresholds: var_qualityThresholds,
        };
    }
}

impl SseDecode for crate::OcrPipelineStage {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_backend = <String>::sse_decode(deserializer);
        let mut var_priority = <i64>::sse_decode(deserializer);
        let mut var_language = <Option<String>>::sse_decode(deserializer);
        let mut var_tesseractConfig = <Option<crate::TesseractConfig>>::sse_decode(deserializer);
        let mut var_paddleOcrConfig = <Option<String>>::sse_decode(deserializer);
        let mut var_vlmConfig = <Option<crate::LlmConfig>>::sse_decode(deserializer);
        let mut var_backendOptions = <Option<String>>::sse_decode(deserializer);
        return crate::OcrPipelineStage {
            backend: var_backend,
            priority: var_priority,
            language: var_language,
            tesseract_config: var_tesseractConfig,
            paddle_ocr_config: var_paddleOcrConfig,
            vlm_config: var_vlmConfig,
            backend_options: var_backendOptions,
        };
    }
}

impl SseDecode for crate::OcrQualityThresholds {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_minTotalNonWhitespace = <i64>::sse_decode(deserializer);
        let mut var_minNonWhitespacePerPage = <f64>::sse_decode(deserializer);
        let mut var_minMeaningfulWordLen = <i64>::sse_decode(deserializer);
        let mut var_minMeaningfulWords = <i64>::sse_decode(deserializer);
        let mut var_minAlnumRatio = <f64>::sse_decode(deserializer);
        let mut var_minGarbageChars = <i64>::sse_decode(deserializer);
        let mut var_maxFragmentedWordRatio = <f64>::sse_decode(deserializer);
        let mut var_criticalFragmentedWordRatio = <f64>::sse_decode(deserializer);
        let mut var_minAvgWordLength = <f64>::sse_decode(deserializer);
        let mut var_minWordsForAvgLengthCheck = <i64>::sse_decode(deserializer);
        let mut var_minConsecutiveRepeatRatio = <f64>::sse_decode(deserializer);
        let mut var_minWordsForRepeatCheck = <i64>::sse_decode(deserializer);
        let mut var_substantiveMinChars = <i64>::sse_decode(deserializer);
        let mut var_nonTextMinChars = <i64>::sse_decode(deserializer);
        let mut var_alnumWsRatioThreshold = <f64>::sse_decode(deserializer);
        let mut var_pipelineMinQuality = <f64>::sse_decode(deserializer);
        return crate::OcrQualityThresholds {
            min_total_non_whitespace: var_minTotalNonWhitespace,
            min_non_whitespace_per_page: var_minNonWhitespacePerPage,
            min_meaningful_word_len: var_minMeaningfulWordLen,
            min_meaningful_words: var_minMeaningfulWords,
            min_alnum_ratio: var_minAlnumRatio,
            min_garbage_chars: var_minGarbageChars,
            max_fragmented_word_ratio: var_maxFragmentedWordRatio,
            critical_fragmented_word_ratio: var_criticalFragmentedWordRatio,
            min_avg_word_length: var_minAvgWordLength,
            min_words_for_avg_length_check: var_minWordsForAvgLengthCheck,
            min_consecutive_repeat_ratio: var_minConsecutiveRepeatRatio,
            min_words_for_repeat_check: var_minWordsForRepeatCheck,
            substantive_min_chars: var_substantiveMinChars,
            non_text_min_chars: var_nonTextMinChars,
            alnum_ws_ratio_threshold: var_alnumWsRatioThreshold,
            pipeline_min_quality: var_pipelineMinQuality,
        };
    }
}

impl SseDecode for crate::OcrRotation {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_angleDegrees = <f64>::sse_decode(deserializer);
        let mut var_confidence = <Option<f64>>::sse_decode(deserializer);
        return crate::OcrRotation {
            angle_degrees: var_angleDegrees,
            confidence: var_confidence,
        };
    }
}

impl SseDecode for crate::OcrTable {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_cells = <Vec<Vec<String>>>::sse_decode(deserializer);
        let mut var_markdown = <String>::sse_decode(deserializer);
        let mut var_pageNumber = <i64>::sse_decode(deserializer);
        let mut var_boundingBox = <Option<crate::OcrTableBoundingBox>>::sse_decode(deserializer);
        return crate::OcrTable {
            cells: var_cells,
            markdown: var_markdown,
            page_number: var_pageNumber,
            bounding_box: var_boundingBox,
        };
    }
}

impl SseDecode for crate::OcrTableBoundingBox {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_left = <i64>::sse_decode(deserializer);
        let mut var_top = <i64>::sse_decode(deserializer);
        let mut var_right = <i64>::sse_decode(deserializer);
        let mut var_bottom = <i64>::sse_decode(deserializer);
        return crate::OcrTableBoundingBox {
            left: var_left,
            top: var_top,
            right: var_right,
            bottom: var_bottom,
        };
    }
}

impl SseDecode for Option<std::collections::HashMap<String, String>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<std::collections::HashMap<String, String>>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<std::collections::HashMap<String, i64>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<std::collections::HashMap<String, i64>>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<std::collections::HashMap<String, Vec<String>>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<std::collections::HashMap<String, Vec<String>>>::sse_decode(
                deserializer,
            ));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<std::collections::HashMap<String, Vec<u8>>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<std::collections::HashMap<String, Vec<u8>>>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<String> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<String>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::AccelerationConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::AccelerationConfig>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<bool> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<bool>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::BoundingBox> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::BoundingBox>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::ChunkingConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::ChunkingConfig>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::ContentFilterConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::ContentFilterConfig>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::CoreProperties> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::CoreProperties>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::DjotContent> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::DjotContent>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::DocumentStructure> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::DocumentStructure>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::DocxAppProperties> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::DocxAppProperties>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::EmailConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::EmailConfig>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::EmbeddingConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::EmbeddingConfig>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::EmbeddingPreset> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::EmbeddingPreset>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::ErrorMetadata> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::ErrorMetadata>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::ExtractionMethod> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::ExtractionMethod>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::ExtractionResult> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::ExtractionResult>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<f64> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<f64>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::FileExtractionConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::FileExtractionConfig>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::FormatMetadata> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::FormatMetadata>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::HeadingContext> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::HeadingContext>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::HierarchyConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::HierarchyConfig>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::HtmlOutputConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::HtmlOutputConfig>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<i64> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<i64>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::ImageExtractionConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::ImageExtractionConfig>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::ImageKind> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::ImageKind>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::ImagePreprocessingConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::ImagePreprocessingConfig>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::ImagePreprocessingMetadata> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::ImagePreprocessingMetadata>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::KeywordConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::KeywordConfig>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::LanguageDetectionConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::LanguageDetectionConfig>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::LayoutDetectionConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::LayoutDetectionConfig>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::LlmConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::LlmConfig>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::OcrConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::OcrConfig>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::OcrElementConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::OcrElementConfig>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::OcrPipelineConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::OcrPipelineConfig>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::OcrQualityThresholds> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::OcrQualityThresholds>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::OcrRotation> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::OcrRotation>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::OcrTableBoundingBox> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::OcrTableBoundingBox>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::OutputFormat> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::OutputFormat>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::PageConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::PageConfig>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::PageHierarchy> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::PageHierarchy>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::PageStructure> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::PageStructure>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::PdfConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::PdfConfig>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::PostProcessorConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::PostProcessorConfig>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::RakeParams> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::RakeParams>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::ResultFormat> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::ResultFormat>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::RevisionAnchor> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::RevisionAnchor>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::SecurityLimits> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::SecurityLimits>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::StructuredExtractionConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::StructuredExtractionConfig>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::TesseractConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::TesseractConfig>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::TextDirection> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::TextDirection>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::TokenReductionOptions> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::TokenReductionOptions>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::TreeSitterConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::TreeSitterConfig>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::YakeParams> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::YakeParams>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<crate::YearRange> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<crate::YearRange>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<Vec<String>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<Vec<String>>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<Vec<crate::ArchiveEntry>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<Vec<crate::ArchiveEntry>>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<Vec<crate::Chunk>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<Vec<crate::Chunk>>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<Vec<crate::DocumentRevision>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<Vec<crate::DocumentRevision>>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<Vec<crate::Element>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<Vec<crate::Element>>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<Vec<crate::ExtractedImage>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<Vec<crate::ExtractedImage>>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<Vec<crate::ExtractedUri>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<Vec<crate::ExtractedUri>>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<Vec<crate::Keyword>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<Vec<crate::Keyword>>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<Vec<crate::LayoutRegion>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<Vec<crate::LayoutRegion>>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<Vec<Vec<String>>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<Vec<Vec<String>>>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<Vec<crate::LlmUsage>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<Vec<crate::LlmUsage>>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<Vec<crate::OcrElement>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<Vec<crate::OcrElement>>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<Vec<crate::PageBoundary>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<Vec<crate::PageBoundary>>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<Vec<crate::PageContent>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<Vec<crate::PageContent>>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<Vec<crate::PageInfo>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<Vec<crate::PageInfo>>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<Vec<crate::PdfAnnotation>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<Vec<crate::PdfAnnotation>>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<Vec<f64>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<Vec<f64>>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<Vec<i64>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<Vec<i64>>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for Option<Vec<u8>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        if (<bool>::sse_decode(deserializer)) {
            return Some(<Vec<u8>>::sse_decode(deserializer));
        } else {
            return None;
        }
    }
}

impl SseDecode for crate::OrientationResult {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_degrees = <i64>::sse_decode(deserializer);
        let mut var_confidence = <f64>::sse_decode(deserializer);
        return crate::OrientationResult {
            degrees: var_degrees,
            confidence: var_confidence,
        };
    }
}

impl SseDecode for crate::OutputFormat {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut tag_ = <i32>::sse_decode(deserializer);
        match tag_ {
            0 => {
                return crate::OutputFormat::Plain;
            }
            1 => {
                return crate::OutputFormat::Markdown;
            }
            2 => {
                return crate::OutputFormat::Djot;
            }
            3 => {
                return crate::OutputFormat::Html;
            }
            4 => {
                return crate::OutputFormat::Json;
            }
            5 => {
                return crate::OutputFormat::Structured;
            }
            6 => {
                let mut var_field0 = <String>::sse_decode(deserializer);
                return crate::OutputFormat::Custom { field0: var_field0 };
            }
            _ => {
                unimplemented!("");
            }
        }
    }
}

impl SseDecode for crate::PaddleOcrConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_language = <String>::sse_decode(deserializer);
        let mut var_cacheDir = <Option<String>>::sse_decode(deserializer);
        let mut var_useAngleCls = <bool>::sse_decode(deserializer);
        let mut var_enableTableDetection = <bool>::sse_decode(deserializer);
        let mut var_detDbThresh = <f64>::sse_decode(deserializer);
        let mut var_detDbBoxThresh = <f64>::sse_decode(deserializer);
        let mut var_detDbUnclipRatio = <f64>::sse_decode(deserializer);
        let mut var_detLimitSideLen = <i64>::sse_decode(deserializer);
        let mut var_recBatchNum = <i64>::sse_decode(deserializer);
        let mut var_padding = <i64>::sse_decode(deserializer);
        let mut var_dropScore = <f64>::sse_decode(deserializer);
        let mut var_modelTier = <String>::sse_decode(deserializer);
        return crate::PaddleOcrConfig {
            language: var_language,
            cache_dir: var_cacheDir,
            use_angle_cls: var_useAngleCls,
            enable_table_detection: var_enableTableDetection,
            det_db_thresh: var_detDbThresh,
            det_db_box_thresh: var_detDbBoxThresh,
            det_db_unclip_ratio: var_detDbUnclipRatio,
            det_limit_side_len: var_detLimitSideLen,
            rec_batch_num: var_recBatchNum,
            padding: var_padding,
            drop_score: var_dropScore,
            model_tier: var_modelTier,
        };
    }
}

impl SseDecode for crate::PageBoundary {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_byteStart = <i64>::sse_decode(deserializer);
        let mut var_byteEnd = <i64>::sse_decode(deserializer);
        let mut var_pageNumber = <i64>::sse_decode(deserializer);
        return crate::PageBoundary {
            byte_start: var_byteStart,
            byte_end: var_byteEnd,
            page_number: var_pageNumber,
        };
    }
}

impl SseDecode for crate::PageConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_extractPages = <bool>::sse_decode(deserializer);
        let mut var_insertPageMarkers = <bool>::sse_decode(deserializer);
        let mut var_markerFormat = <String>::sse_decode(deserializer);
        return crate::PageConfig {
            extract_pages: var_extractPages,
            insert_page_markers: var_insertPageMarkers,
            marker_format: var_markerFormat,
        };
    }
}

impl SseDecode for crate::PageContent {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_pageNumber = <i64>::sse_decode(deserializer);
        let mut var_content = <String>::sse_decode(deserializer);
        let mut var_tables = <Vec<crate::Table>>::sse_decode(deserializer);
        let mut var_imageIndices = <Vec<i64>>::sse_decode(deserializer);
        let mut var_hierarchy = <Option<crate::PageHierarchy>>::sse_decode(deserializer);
        let mut var_isBlank = <Option<bool>>::sse_decode(deserializer);
        let mut var_layoutRegions = <Option<Vec<crate::LayoutRegion>>>::sse_decode(deserializer);
        let mut var_speakerNotes = <Option<String>>::sse_decode(deserializer);
        let mut var_sectionName = <Option<String>>::sse_decode(deserializer);
        let mut var_sheetName = <Option<String>>::sse_decode(deserializer);
        return crate::PageContent {
            page_number: var_pageNumber,
            content: var_content,
            tables: var_tables,
            image_indices: var_imageIndices,
            hierarchy: var_hierarchy,
            is_blank: var_isBlank,
            layout_regions: var_layoutRegions,
            speaker_notes: var_speakerNotes,
            section_name: var_sectionName,
            sheet_name: var_sheetName,
        };
    }
}

impl SseDecode for crate::PageHierarchy {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_blockCount = <i64>::sse_decode(deserializer);
        let mut var_blocks = <Vec<crate::HierarchicalBlock>>::sse_decode(deserializer);
        return crate::PageHierarchy {
            block_count: var_blockCount,
            blocks: var_blocks,
        };
    }
}

impl SseDecode for crate::PageInfo {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_number = <i64>::sse_decode(deserializer);
        let mut var_title = <Option<String>>::sse_decode(deserializer);
        let mut var_dimensions = <Option<Vec<f64>>>::sse_decode(deserializer);
        let mut var_imageCount = <Option<i64>>::sse_decode(deserializer);
        let mut var_tableCount = <Option<i64>>::sse_decode(deserializer);
        let mut var_hidden = <Option<bool>>::sse_decode(deserializer);
        let mut var_isBlank = <Option<bool>>::sse_decode(deserializer);
        let mut var_hasVectorGraphics = <bool>::sse_decode(deserializer);
        return crate::PageInfo {
            number: var_number,
            title: var_title,
            dimensions: var_dimensions,
            image_count: var_imageCount,
            table_count: var_tableCount,
            hidden: var_hidden,
            is_blank: var_isBlank,
            has_vector_graphics: var_hasVectorGraphics,
        };
    }
}

impl SseDecode for crate::PageStructure {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_totalCount = <i64>::sse_decode(deserializer);
        let mut var_unitType = <crate::PageUnitType>::sse_decode(deserializer);
        let mut var_boundaries = <Option<Vec<crate::PageBoundary>>>::sse_decode(deserializer);
        let mut var_pages = <Option<Vec<crate::PageInfo>>>::sse_decode(deserializer);
        return crate::PageStructure {
            total_count: var_totalCount,
            unit_type: var_unitType,
            boundaries: var_boundaries,
            pages: var_pages,
        };
    }
}

impl SseDecode for crate::PageUnitType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::PageUnitType::Page,
            1 => crate::PageUnitType::Slide,
            2 => crate::PageUnitType::Sheet,
            _ => unreachable!("Invalid variant for PageUnitType: {}", inner),
        };
    }
}

impl SseDecode for crate::PdfAnnotation {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_annotationType = <crate::PdfAnnotationType>::sse_decode(deserializer);
        let mut var_content = <Option<String>>::sse_decode(deserializer);
        let mut var_pageNumber = <i64>::sse_decode(deserializer);
        let mut var_boundingBox = <Option<crate::BoundingBox>>::sse_decode(deserializer);
        return crate::PdfAnnotation {
            annotation_type: var_annotationType,
            content: var_content,
            page_number: var_pageNumber,
            bounding_box: var_boundingBox,
        };
    }
}

impl SseDecode for crate::PdfAnnotationType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::PdfAnnotationType::Text,
            1 => crate::PdfAnnotationType::Highlight,
            2 => crate::PdfAnnotationType::Link,
            3 => crate::PdfAnnotationType::Stamp,
            4 => crate::PdfAnnotationType::Underline,
            5 => crate::PdfAnnotationType::StrikeOut,
            6 => crate::PdfAnnotationType::Other,
            _ => unreachable!("Invalid variant for PdfAnnotationType: {}", inner),
        };
    }
}

impl SseDecode for crate::PdfConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_extractImages = <bool>::sse_decode(deserializer);
        let mut var_extractTables = <bool>::sse_decode(deserializer);
        let mut var_passwords = <Option<Vec<String>>>::sse_decode(deserializer);
        let mut var_extractMetadata = <bool>::sse_decode(deserializer);
        let mut var_hierarchy = <Option<crate::HierarchyConfig>>::sse_decode(deserializer);
        let mut var_extractAnnotations = <bool>::sse_decode(deserializer);
        let mut var_topMarginFraction = <Option<f64>>::sse_decode(deserializer);
        let mut var_bottomMarginFraction = <Option<f64>>::sse_decode(deserializer);
        let mut var_allowSingleColumnTables = <bool>::sse_decode(deserializer);
        let mut var_ocrInlineImages = <bool>::sse_decode(deserializer);
        return crate::PdfConfig {
            extract_images: var_extractImages,
            extract_tables: var_extractTables,
            passwords: var_passwords,
            extract_metadata: var_extractMetadata,
            hierarchy: var_hierarchy,
            extract_annotations: var_extractAnnotations,
            top_margin_fraction: var_topMarginFraction,
            bottom_margin_fraction: var_bottomMarginFraction,
            allow_single_column_tables: var_allowSingleColumnTables,
            ocr_inline_images: var_ocrInlineImages,
        };
    }
}

impl SseDecode for crate::PdfMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_pdfVersion = <Option<String>>::sse_decode(deserializer);
        let mut var_producer = <Option<String>>::sse_decode(deserializer);
        let mut var_isEncrypted = <Option<bool>>::sse_decode(deserializer);
        let mut var_width = <Option<i64>>::sse_decode(deserializer);
        let mut var_height = <Option<i64>>::sse_decode(deserializer);
        let mut var_pageCount = <Option<i64>>::sse_decode(deserializer);
        return crate::PdfMetadata {
            pdf_version: var_pdfVersion,
            producer: var_producer,
            is_encrypted: var_isEncrypted,
            width: var_width,
            height: var_height,
            page_count: var_pageCount,
        };
    }
}

impl SseDecode for crate::PostProcessorConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_enabled = <bool>::sse_decode(deserializer);
        let mut var_enabledProcessors = <Option<Vec<String>>>::sse_decode(deserializer);
        let mut var_disabledProcessors = <Option<Vec<String>>>::sse_decode(deserializer);
        let mut var_enabledSet = <Option<Vec<String>>>::sse_decode(deserializer);
        let mut var_disabledSet = <Option<Vec<String>>>::sse_decode(deserializer);
        return crate::PostProcessorConfig {
            enabled: var_enabled,
            enabled_processors: var_enabledProcessors,
            disabled_processors: var_disabledProcessors,
            enabled_set: var_enabledSet,
            disabled_set: var_disabledSet,
        };
    }
}

impl SseDecode for crate::PptxAppProperties {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_application = <Option<String>>::sse_decode(deserializer);
        let mut var_appVersion = <Option<String>>::sse_decode(deserializer);
        let mut var_totalTime = <Option<i64>>::sse_decode(deserializer);
        let mut var_company = <Option<String>>::sse_decode(deserializer);
        let mut var_docSecurity = <Option<i64>>::sse_decode(deserializer);
        let mut var_scaleCrop = <Option<bool>>::sse_decode(deserializer);
        let mut var_linksUpToDate = <Option<bool>>::sse_decode(deserializer);
        let mut var_sharedDoc = <Option<bool>>::sse_decode(deserializer);
        let mut var_hyperlinksChanged = <Option<bool>>::sse_decode(deserializer);
        let mut var_slides = <Option<i64>>::sse_decode(deserializer);
        let mut var_notes = <Option<i64>>::sse_decode(deserializer);
        let mut var_hiddenSlides = <Option<i64>>::sse_decode(deserializer);
        let mut var_multimediaClips = <Option<i64>>::sse_decode(deserializer);
        let mut var_presentationFormat = <Option<String>>::sse_decode(deserializer);
        let mut var_slideTitles = <Vec<String>>::sse_decode(deserializer);
        return crate::PptxAppProperties {
            application: var_application,
            app_version: var_appVersion,
            total_time: var_totalTime,
            company: var_company,
            doc_security: var_docSecurity,
            scale_crop: var_scaleCrop,
            links_up_to_date: var_linksUpToDate,
            shared_doc: var_sharedDoc,
            hyperlinks_changed: var_hyperlinksChanged,
            slides: var_slides,
            notes: var_notes,
            hidden_slides: var_hiddenSlides,
            multimedia_clips: var_multimediaClips,
            presentation_format: var_presentationFormat,
            slide_titles: var_slideTitles,
        };
    }
}

impl SseDecode for crate::PptxExtractionResult {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_content = <String>::sse_decode(deserializer);
        let mut var_metadata = <crate::PptxMetadata>::sse_decode(deserializer);
        let mut var_slideCount = <i64>::sse_decode(deserializer);
        let mut var_imageCount = <i64>::sse_decode(deserializer);
        let mut var_tableCount = <i64>::sse_decode(deserializer);
        let mut var_images = <Vec<crate::ExtractedImage>>::sse_decode(deserializer);
        let mut var_pageStructure = <Option<crate::PageStructure>>::sse_decode(deserializer);
        let mut var_pageContents = <Option<Vec<crate::PageContent>>>::sse_decode(deserializer);
        let mut var_document = <Option<crate::DocumentStructure>>::sse_decode(deserializer);
        let mut var_hyperlinks = <Vec<String>>::sse_decode(deserializer);
        let mut var_officeMetadata = <std::collections::HashMap<String, String>>::sse_decode(deserializer);
        let mut var_revisions = <Option<Vec<crate::DocumentRevision>>>::sse_decode(deserializer);
        return crate::PptxExtractionResult {
            content: var_content,
            metadata: var_metadata,
            slide_count: var_slideCount,
            image_count: var_imageCount,
            table_count: var_tableCount,
            images: var_images,
            page_structure: var_pageStructure,
            page_contents: var_pageContents,
            document: var_document,
            hyperlinks: var_hyperlinks,
            office_metadata: var_officeMetadata,
            revisions: var_revisions,
        };
    }
}

impl SseDecode for crate::PptxMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_slideCount = <i64>::sse_decode(deserializer);
        let mut var_slideNames = <Vec<String>>::sse_decode(deserializer);
        let mut var_imageCount = <Option<i64>>::sse_decode(deserializer);
        let mut var_tableCount = <Option<i64>>::sse_decode(deserializer);
        return crate::PptxMetadata {
            slide_count: var_slideCount,
            slide_names: var_slideNames,
            image_count: var_imageCount,
            table_count: var_tableCount,
        };
    }
}

impl SseDecode for crate::ProcessingStage {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::ProcessingStage::Early,
            1 => crate::ProcessingStage::Middle,
            2 => crate::ProcessingStage::Late,
            _ => unreachable!("Invalid variant for ProcessingStage: {}", inner),
        };
    }
}

impl SseDecode for crate::ProcessingWarning {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_source = <String>::sse_decode(deserializer);
        let mut var_message = <String>::sse_decode(deserializer);
        return crate::ProcessingWarning {
            source: var_source,
            message: var_message,
        };
    }
}

impl SseDecode for crate::PstMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_messageCount = <i64>::sse_decode(deserializer);
        return crate::PstMetadata {
            message_count: var_messageCount,
        };
    }
}

impl SseDecode for crate::RakeParams {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_minWordLength = <i64>::sse_decode(deserializer);
        let mut var_maxWordsPerPhrase = <i64>::sse_decode(deserializer);
        return crate::RakeParams {
            min_word_length: var_minWordLength,
            max_words_per_phrase: var_maxWordsPerPhrase,
        };
    }
}

impl SseDecode for crate::RecognizedTable {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_detectionBbox = <crate::BBox>::sse_decode(deserializer);
        let mut var_cells = <Vec<Vec<String>>>::sse_decode(deserializer);
        let mut var_markdown = <String>::sse_decode(deserializer);
        return crate::RecognizedTable {
            detection_bbox: var_detectionBbox,
            cells: var_cells,
            markdown: var_markdown,
        };
    }
}

impl SseDecode for (String, i64) {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_field0 = <String>::sse_decode(deserializer);
        let mut var_field1 = <i64>::sse_decode(deserializer);
        return (var_field0, var_field1);
    }
}

impl SseDecode for (String, Vec<u8>) {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_field0 = <String>::sse_decode(deserializer);
        let mut var_field1 = <Vec<u8>>::sse_decode(deserializer);
        return (var_field0, var_field1);
    }
}

impl SseDecode for (String, Vec<String>) {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_field0 = <String>::sse_decode(deserializer);
        let mut var_field1 = <Vec<String>>::sse_decode(deserializer);
        return (var_field0, var_field1);
    }
}

impl SseDecode for (String, String) {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_field0 = <String>::sse_decode(deserializer);
        let mut var_field1 = <String>::sse_decode(deserializer);
        return (var_field0, var_field1);
    }
}

impl SseDecode for crate::ReductionLevel {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::ReductionLevel::Off,
            1 => crate::ReductionLevel::Light,
            2 => crate::ReductionLevel::Moderate,
            3 => crate::ReductionLevel::Aggressive,
            4 => crate::ReductionLevel::Maximum,
            _ => unreachable!("Invalid variant for ReductionLevel: {}", inner),
        };
    }
}

impl SseDecode for crate::RelationshipKind {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::RelationshipKind::FootnoteReference,
            1 => crate::RelationshipKind::CitationReference,
            2 => crate::RelationshipKind::InternalLink,
            3 => crate::RelationshipKind::Caption,
            4 => crate::RelationshipKind::Label,
            5 => crate::RelationshipKind::TocEntry,
            6 => crate::RelationshipKind::CrossReference,
            _ => unreachable!("Invalid variant for RelationshipKind: {}", inner),
        };
    }
}

impl SseDecode for crate::ResultFormat {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::ResultFormat::Unified,
            1 => crate::ResultFormat::ElementBased,
            _ => unreachable!("Invalid variant for ResultFormat: {}", inner),
        };
    }
}

impl SseDecode for crate::RevisionAnchor {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut tag_ = <i32>::sse_decode(deserializer);
        match tag_ {
            0 => {
                let mut var_index = <i64>::sse_decode(deserializer);
                return crate::RevisionAnchor::Paragraph { index: var_index };
            }
            1 => {
                let mut var_row = <i64>::sse_decode(deserializer);
                let mut var_col = <i64>::sse_decode(deserializer);
                let mut var_tableIndex = <i64>::sse_decode(deserializer);
                return crate::RevisionAnchor::TableCell {
                    row: var_row,
                    col: var_col,
                    table_index: var_tableIndex,
                };
            }
            2 => {
                let mut var_index = <i64>::sse_decode(deserializer);
                return crate::RevisionAnchor::Page { index: var_index };
            }
            3 => {
                let mut var_index = <i64>::sse_decode(deserializer);
                return crate::RevisionAnchor::Slide { index: var_index };
            }
            4 => {
                let mut var_index = <i64>::sse_decode(deserializer);
                let mut var_name = <String>::sse_decode(deserializer);
                return crate::RevisionAnchor::Sheet {
                    index: var_index,
                    name: var_name,
                };
            }
            _ => {
                unimplemented!("");
            }
        }
    }
}

impl SseDecode for crate::RevisionDelta {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_content = <Vec<crate::DiffLine>>::sse_decode(deserializer);
        let mut var_tableChanges = <Vec<crate::CellChange>>::sse_decode(deserializer);
        return crate::RevisionDelta {
            content: var_content,
            table_changes: var_tableChanges,
        };
    }
}

impl SseDecode for crate::RevisionKind {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::RevisionKind::Insertion,
            1 => crate::RevisionKind::Deletion,
            2 => crate::RevisionKind::FormatChange,
            3 => crate::RevisionKind::Comment,
            _ => unreachable!("Invalid variant for RevisionKind: {}", inner),
        };
    }
}

impl SseDecode for crate::SecurityLimits {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_maxArchiveSize = <i64>::sse_decode(deserializer);
        let mut var_maxCompressionRatio = <i64>::sse_decode(deserializer);
        let mut var_maxFilesInArchive = <i64>::sse_decode(deserializer);
        let mut var_maxNestingDepth = <i64>::sse_decode(deserializer);
        let mut var_maxEntityLength = <i64>::sse_decode(deserializer);
        let mut var_maxContentSize = <i64>::sse_decode(deserializer);
        let mut var_maxIterations = <i64>::sse_decode(deserializer);
        let mut var_maxXmlDepth = <i64>::sse_decode(deserializer);
        let mut var_maxTableCells = <i64>::sse_decode(deserializer);
        return crate::SecurityLimits {
            max_archive_size: var_maxArchiveSize,
            max_compression_ratio: var_maxCompressionRatio,
            max_files_in_archive: var_maxFilesInArchive,
            max_nesting_depth: var_maxNestingDepth,
            max_entity_length: var_maxEntityLength,
            max_content_size: var_maxContentSize,
            max_iterations: var_maxIterations,
            max_xml_depth: var_maxXmlDepth,
            max_table_cells: var_maxTableCells,
        };
    }
}

impl SseDecode for crate::ServerConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_host = <String>::sse_decode(deserializer);
        let mut var_port = <i64>::sse_decode(deserializer);
        let mut var_corsOrigins = <Vec<String>>::sse_decode(deserializer);
        let mut var_maxRequestBodyBytes = <i64>::sse_decode(deserializer);
        let mut var_maxMultipartFieldBytes = <i64>::sse_decode(deserializer);
        return crate::ServerConfig {
            host: var_host,
            port: var_port,
            cors_origins: var_corsOrigins,
            max_request_body_bytes: var_maxRequestBodyBytes,
            max_multipart_field_bytes: var_maxMultipartFieldBytes,
        };
    }
}

impl SseDecode for crate::StructuredData {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_dataType = <crate::StructuredDataType>::sse_decode(deserializer);
        let mut var_rawJson = <String>::sse_decode(deserializer);
        let mut var_schemaType = <Option<String>>::sse_decode(deserializer);
        return crate::StructuredData {
            data_type: var_dataType,
            raw_json: var_rawJson,
            schema_type: var_schemaType,
        };
    }
}

impl SseDecode for crate::StructuredDataResult {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_content = <String>::sse_decode(deserializer);
        let mut var_format = <String>::sse_decode(deserializer);
        let mut var_metadata = <std::collections::HashMap<String, String>>::sse_decode(deserializer);
        let mut var_textFields = <Vec<String>>::sse_decode(deserializer);
        return crate::StructuredDataResult {
            content: var_content,
            format: var_format,
            metadata: var_metadata,
            text_fields: var_textFields,
        };
    }
}

impl SseDecode for crate::StructuredDataType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::StructuredDataType::JsonLd,
            1 => crate::StructuredDataType::Microdata,
            2 => crate::StructuredDataType::RDFa,
            _ => unreachable!("Invalid variant for StructuredDataType: {}", inner),
        };
    }
}

impl SseDecode for crate::StructuredExtractionConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_schema = <String>::sse_decode(deserializer);
        let mut var_schemaName = <String>::sse_decode(deserializer);
        let mut var_schemaDescription = <Option<String>>::sse_decode(deserializer);
        let mut var_strict = <bool>::sse_decode(deserializer);
        let mut var_prompt = <Option<String>>::sse_decode(deserializer);
        let mut var_llm = <crate::LlmConfig>::sse_decode(deserializer);
        return crate::StructuredExtractionConfig {
            schema: var_schema,
            schema_name: var_schemaName,
            schema_description: var_schemaDescription,
            strict: var_strict,
            prompt: var_prompt,
            llm: var_llm,
        };
    }
}

impl SseDecode for crate::SupportedFormat {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_extension_ = <String>::sse_decode(deserializer);
        let mut var_mimeType = <String>::sse_decode(deserializer);
        return crate::SupportedFormat {
            extension: var_extension_,
            mime_type: var_mimeType,
        };
    }
}

impl SseDecode for crate::Table {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_cells = <Vec<Vec<String>>>::sse_decode(deserializer);
        let mut var_markdown = <String>::sse_decode(deserializer);
        let mut var_pageNumber = <i64>::sse_decode(deserializer);
        let mut var_boundingBox = <Option<crate::BoundingBox>>::sse_decode(deserializer);
        return crate::Table {
            cells: var_cells,
            markdown: var_markdown,
            page_number: var_pageNumber,
            bounding_box: var_boundingBox,
        };
    }
}

impl SseDecode for crate::TableCell {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_content = <String>::sse_decode(deserializer);
        let mut var_rowSpan = <i64>::sse_decode(deserializer);
        let mut var_colSpan = <i64>::sse_decode(deserializer);
        let mut var_isHeader = <bool>::sse_decode(deserializer);
        return crate::TableCell {
            content: var_content,
            row_span: var_rowSpan,
            col_span: var_colSpan,
            is_header: var_isHeader,
        };
    }
}

impl SseDecode for crate::TableDiff {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_fromIndex = <i64>::sse_decode(deserializer);
        let mut var_toIndex = <i64>::sse_decode(deserializer);
        let mut var_cellChanges = <Vec<crate::CellChange>>::sse_decode(deserializer);
        return crate::TableDiff {
            from_index: var_fromIndex,
            to_index: var_toIndex,
            cell_changes: var_cellChanges,
        };
    }
}

impl SseDecode for crate::TableGrid {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_rows = <i64>::sse_decode(deserializer);
        let mut var_cols = <i64>::sse_decode(deserializer);
        let mut var_cells = <Vec<crate::GridCell>>::sse_decode(deserializer);
        return crate::TableGrid {
            rows: var_rows,
            cols: var_cols,
            cells: var_cells,
        };
    }
}

impl SseDecode for crate::TableModel {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::TableModel::Tatr,
            1 => crate::TableModel::SlanetWired,
            2 => crate::TableModel::SlanetWireless,
            3 => crate::TableModel::SlanetPlus,
            4 => crate::TableModel::SlanetAuto,
            5 => crate::TableModel::Disabled,
            _ => unreachable!("Invalid variant for TableModel: {}", inner),
        };
    }
}

impl SseDecode for crate::TesseractConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_language = <String>::sse_decode(deserializer);
        let mut var_psm = <i64>::sse_decode(deserializer);
        let mut var_outputFormat = <String>::sse_decode(deserializer);
        let mut var_oem = <i64>::sse_decode(deserializer);
        let mut var_minConfidence = <f64>::sse_decode(deserializer);
        let mut var_preprocessing = <Option<crate::ImagePreprocessingConfig>>::sse_decode(deserializer);
        let mut var_enableTableDetection = <bool>::sse_decode(deserializer);
        let mut var_tableMinConfidence = <f64>::sse_decode(deserializer);
        let mut var_tableColumnThreshold = <i64>::sse_decode(deserializer);
        let mut var_tableRowThresholdRatio = <f64>::sse_decode(deserializer);
        let mut var_useCache = <bool>::sse_decode(deserializer);
        let mut var_classifyUsePreAdaptedTemplates = <bool>::sse_decode(deserializer);
        let mut var_languageModelNgramOn = <bool>::sse_decode(deserializer);
        let mut var_tesseditDontBlkrejGoodWds = <bool>::sse_decode(deserializer);
        let mut var_tesseditDontRowrejGoodWds = <bool>::sse_decode(deserializer);
        let mut var_tesseditEnableDictCorrection = <bool>::sse_decode(deserializer);
        let mut var_tesseditCharWhitelist = <String>::sse_decode(deserializer);
        let mut var_tesseditCharBlacklist = <String>::sse_decode(deserializer);
        let mut var_tesseditUsePrimaryParamsModel = <bool>::sse_decode(deserializer);
        let mut var_textordSpaceSizeIsVariable = <bool>::sse_decode(deserializer);
        let mut var_thresholdingMethod = <bool>::sse_decode(deserializer);
        return crate::TesseractConfig {
            language: var_language,
            psm: var_psm,
            output_format: var_outputFormat,
            oem: var_oem,
            min_confidence: var_minConfidence,
            preprocessing: var_preprocessing,
            enable_table_detection: var_enableTableDetection,
            table_min_confidence: var_tableMinConfidence,
            table_column_threshold: var_tableColumnThreshold,
            table_row_threshold_ratio: var_tableRowThresholdRatio,
            use_cache: var_useCache,
            classify_use_pre_adapted_templates: var_classifyUsePreAdaptedTemplates,
            language_model_ngram_on: var_languageModelNgramOn,
            tessedit_dont_blkrej_good_wds: var_tesseditDontBlkrejGoodWds,
            tessedit_dont_rowrej_good_wds: var_tesseditDontRowrejGoodWds,
            tessedit_enable_dict_correction: var_tesseditEnableDictCorrection,
            tessedit_char_whitelist: var_tesseditCharWhitelist,
            tessedit_char_blacklist: var_tesseditCharBlacklist,
            tessedit_use_primary_params_model: var_tesseditUsePrimaryParamsModel,
            textord_space_size_is_variable: var_textordSpaceSizeIsVariable,
            thresholding_method: var_thresholdingMethod,
        };
    }
}

impl SseDecode for crate::TextAnnotation {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_start = <i64>::sse_decode(deserializer);
        let mut var_end = <i64>::sse_decode(deserializer);
        let mut var_kind = <crate::AnnotationKind>::sse_decode(deserializer);
        return crate::TextAnnotation {
            start: var_start,
            end: var_end,
            kind: var_kind,
        };
    }
}

impl SseDecode for crate::TextDirection {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::TextDirection::LeftToRight,
            1 => crate::TextDirection::RightToLeft,
            2 => crate::TextDirection::Auto,
            _ => unreachable!("Invalid variant for TextDirection: {}", inner),
        };
    }
}

impl SseDecode for crate::TextExtractionResult {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_content = <String>::sse_decode(deserializer);
        let mut var_lineCount = <i64>::sse_decode(deserializer);
        let mut var_wordCount = <i64>::sse_decode(deserializer);
        let mut var_characterCount = <i64>::sse_decode(deserializer);
        let mut var_headers = <Option<Vec<String>>>::sse_decode(deserializer);
        let mut var_links = <Option<Vec<Vec<String>>>>::sse_decode(deserializer);
        let mut var_codeBlocks = <Option<Vec<Vec<String>>>>::sse_decode(deserializer);
        return crate::TextExtractionResult {
            content: var_content,
            line_count: var_lineCount,
            word_count: var_wordCount,
            character_count: var_characterCount,
            headers: var_headers,
            links: var_links,
            code_blocks: var_codeBlocks,
        };
    }
}

impl SseDecode for crate::TextMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_lineCount = <i64>::sse_decode(deserializer);
        let mut var_wordCount = <i64>::sse_decode(deserializer);
        let mut var_characterCount = <i64>::sse_decode(deserializer);
        let mut var_headers = <Option<Vec<String>>>::sse_decode(deserializer);
        let mut var_links = <Option<Vec<Vec<String>>>>::sse_decode(deserializer);
        let mut var_codeBlocks = <Option<Vec<Vec<String>>>>::sse_decode(deserializer);
        return crate::TextMetadata {
            line_count: var_lineCount,
            word_count: var_wordCount,
            character_count: var_characterCount,
            headers: var_headers,
            links: var_links,
            code_blocks: var_codeBlocks,
        };
    }
}

impl SseDecode for crate::TokenReductionConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_level = <crate::ReductionLevel>::sse_decode(deserializer);
        let mut var_languageHint = <Option<String>>::sse_decode(deserializer);
        let mut var_preserveMarkdown = <bool>::sse_decode(deserializer);
        let mut var_preserveCode = <bool>::sse_decode(deserializer);
        let mut var_semanticThreshold = <f64>::sse_decode(deserializer);
        let mut var_enableParallel = <bool>::sse_decode(deserializer);
        let mut var_useSimd = <bool>::sse_decode(deserializer);
        let mut var_customStopwords =
            <Option<std::collections::HashMap<String, Vec<String>>>>::sse_decode(deserializer);
        let mut var_preservePatterns = <Vec<String>>::sse_decode(deserializer);
        let mut var_targetReduction = <Option<f64>>::sse_decode(deserializer);
        let mut var_enableSemanticClustering = <bool>::sse_decode(deserializer);
        return crate::TokenReductionConfig {
            level: var_level,
            language_hint: var_languageHint,
            preserve_markdown: var_preserveMarkdown,
            preserve_code: var_preserveCode,
            semantic_threshold: var_semanticThreshold,
            enable_parallel: var_enableParallel,
            use_simd: var_useSimd,
            custom_stopwords: var_customStopwords,
            preserve_patterns: var_preservePatterns,
            target_reduction: var_targetReduction,
            enable_semantic_clustering: var_enableSemanticClustering,
        };
    }
}

impl SseDecode for crate::TokenReductionOptions {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_mode = <String>::sse_decode(deserializer);
        let mut var_preserveImportantWords = <bool>::sse_decode(deserializer);
        return crate::TokenReductionOptions {
            mode: var_mode,
            preserve_important_words: var_preserveImportantWords,
        };
    }
}

impl SseDecode for crate::TreeSitterConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_enabled = <bool>::sse_decode(deserializer);
        let mut var_cacheDir = <Option<String>>::sse_decode(deserializer);
        let mut var_languages = <Option<Vec<String>>>::sse_decode(deserializer);
        let mut var_groups = <Option<Vec<String>>>::sse_decode(deserializer);
        let mut var_process = <crate::TreeSitterProcessConfig>::sse_decode(deserializer);
        return crate::TreeSitterConfig {
            enabled: var_enabled,
            cache_dir: var_cacheDir,
            languages: var_languages,
            groups: var_groups,
            process: var_process,
        };
    }
}

impl SseDecode for crate::TreeSitterProcessConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_structure = <bool>::sse_decode(deserializer);
        let mut var_imports = <bool>::sse_decode(deserializer);
        let mut var_exports = <bool>::sse_decode(deserializer);
        let mut var_comments = <bool>::sse_decode(deserializer);
        let mut var_docstrings = <bool>::sse_decode(deserializer);
        let mut var_symbols = <bool>::sse_decode(deserializer);
        let mut var_diagnostics = <bool>::sse_decode(deserializer);
        let mut var_chunkMaxSize = <Option<i64>>::sse_decode(deserializer);
        let mut var_contentMode = <crate::CodeContentMode>::sse_decode(deserializer);
        return crate::TreeSitterProcessConfig {
            structure: var_structure,
            imports: var_imports,
            exports: var_exports,
            comments: var_comments,
            docstrings: var_docstrings,
            symbols: var_symbols,
            diagnostics: var_diagnostics,
            chunk_max_size: var_chunkMaxSize,
            content_mode: var_contentMode,
        };
    }
}

impl SseDecode for u8 {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        deserializer.cursor.read_u8().unwrap()
    }
}

impl SseDecode for () {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {}
}

impl SseDecode for crate::UriKind {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut inner = <i32>::sse_decode(deserializer);
        return match inner {
            0 => crate::UriKind::Hyperlink,
            1 => crate::UriKind::Image,
            2 => crate::UriKind::Anchor,
            3 => crate::UriKind::Citation,
            4 => crate::UriKind::Reference,
            5 => crate::UriKind::Email,
            _ => unreachable!("Invalid variant for UriKind: {}", inner),
        };
    }
}

impl SseDecode for usize {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        deserializer.cursor.read_u64::<NativeEndian>().unwrap() as _
    }
}

impl SseDecode for crate::XlsxAppProperties {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_application = <Option<String>>::sse_decode(deserializer);
        let mut var_appVersion = <Option<String>>::sse_decode(deserializer);
        let mut var_docSecurity = <Option<i64>>::sse_decode(deserializer);
        let mut var_scaleCrop = <Option<bool>>::sse_decode(deserializer);
        let mut var_linksUpToDate = <Option<bool>>::sse_decode(deserializer);
        let mut var_sharedDoc = <Option<bool>>::sse_decode(deserializer);
        let mut var_hyperlinksChanged = <Option<bool>>::sse_decode(deserializer);
        let mut var_company = <Option<String>>::sse_decode(deserializer);
        let mut var_worksheetNames = <Vec<String>>::sse_decode(deserializer);
        return crate::XlsxAppProperties {
            application: var_application,
            app_version: var_appVersion,
            doc_security: var_docSecurity,
            scale_crop: var_scaleCrop,
            links_up_to_date: var_linksUpToDate,
            shared_doc: var_sharedDoc,
            hyperlinks_changed: var_hyperlinksChanged,
            company: var_company,
            worksheet_names: var_worksheetNames,
        };
    }
}

impl SseDecode for crate::XmlExtractionResult {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_content = <String>::sse_decode(deserializer);
        let mut var_elementCount = <i64>::sse_decode(deserializer);
        let mut var_uniqueElements = <Vec<String>>::sse_decode(deserializer);
        return crate::XmlExtractionResult {
            content: var_content,
            element_count: var_elementCount,
            unique_elements: var_uniqueElements,
        };
    }
}

impl SseDecode for crate::XmlMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_elementCount = <i64>::sse_decode(deserializer);
        let mut var_uniqueElements = <Vec<String>>::sse_decode(deserializer);
        return crate::XmlMetadata {
            element_count: var_elementCount,
            unique_elements: var_uniqueElements,
        };
    }
}

impl SseDecode for crate::YakeParams {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_windowSize = <i64>::sse_decode(deserializer);
        return crate::YakeParams {
            window_size: var_windowSize,
        };
    }
}

impl SseDecode for crate::YearRange {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
        let mut var_min = <Option<i64>>::sse_decode(deserializer);
        let mut var_max = <Option<i64>>::sse_decode(deserializer);
        let mut var_years = <Vec<i64>>::sse_decode(deserializer);
        return crate::YearRange {
            min: var_min,
            max: var_max,
            years: var_years,
        };
    }
}

fn pde_ffi_dispatcher_primary_impl(
    func_id: i32,
    port: flutter_rust_bridge::for_generated::MessagePort,
    ptr: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len: i32,
    data_len: i32,
) {
    // Codec=Pde (Serialization + dispatch), see doc to use other codecs
    match func_id {
        13 => wire__crate__batch_extract_bytes_impl(port, ptr, rust_vec_len, data_len),
        14 => wire__crate__batch_extract_bytes_sync_impl(port, ptr, rust_vec_len, data_len),
        15 => wire__crate__batch_extract_files_impl(port, ptr, rust_vec_len, data_len),
        16 => wire__crate__batch_extract_files_sync_impl(port, ptr, rust_vec_len, data_len),
        17 => wire__crate__clear_document_extractors_impl(port, ptr, rust_vec_len, data_len),
        18 => wire__crate__clear_embedding_backends_impl(port, ptr, rust_vec_len, data_len),
        19 => wire__crate__clear_ocr_backends_impl(port, ptr, rust_vec_len, data_len),
        20 => wire__crate__clear_post_processors_impl(port, ptr, rust_vec_len, data_len),
        21 => wire__crate__clear_renderers_impl(port, ptr, rust_vec_len, data_len),
        22 => wire__crate__clear_validators_impl(port, ptr, rust_vec_len, data_len),
        23 => wire__crate__compare_impl(port, ptr, rust_vec_len, data_len),
        24 => wire__crate__create_acceleration_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        25 => wire__crate__create_archive_entry_from_json_impl(port, ptr, rust_vec_len, data_len),
        26 => wire__crate__create_archive_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        27 => wire__crate__create_b_box_from_json_impl(port, ptr, rust_vec_len, data_len),
        28 => wire__crate__create_batch_bytes_item_from_json_impl(port, ptr, rust_vec_len, data_len),
        29 => wire__crate__create_batch_file_item_from_json_impl(port, ptr, rust_vec_len, data_len),
        30 => wire__crate__create_bibtex_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        31 => wire__crate__create_bounding_box_from_json_impl(port, ptr, rust_vec_len, data_len),
        32 => wire__crate__create_cache_stats_from_json_impl(port, ptr, rust_vec_len, data_len),
        33 => wire__crate__create_cell_change_from_json_impl(port, ptr, rust_vec_len, data_len),
        34 => wire__crate__create_chunk_from_json_impl(port, ptr, rust_vec_len, data_len),
        35 => wire__crate__create_chunk_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        36 => wire__crate__create_chunking_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        37 => wire__crate__create_citation_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        38 => wire__crate__create_content_filter_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        39 => wire__crate__create_contributor_role_from_json_impl(port, ptr, rust_vec_len, data_len),
        40 => wire__crate__create_core_properties_from_json_impl(port, ptr, rust_vec_len, data_len),
        41 => wire__crate__create_csv_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        42 => wire__crate__create_dbf_field_info_from_json_impl(port, ptr, rust_vec_len, data_len),
        43 => wire__crate__create_dbf_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        44 => wire__crate__create_detect_response_from_json_impl(port, ptr, rust_vec_len, data_len),
        45 => wire__crate__create_detection_result_from_json_impl(port, ptr, rust_vec_len, data_len),
        46 => wire__crate__create_diff_hunk_from_json_impl(port, ptr, rust_vec_len, data_len),
        47 => wire__crate__create_diff_options_from_json_impl(port, ptr, rust_vec_len, data_len),
        48 => wire__crate__create_djot_content_from_json_impl(port, ptr, rust_vec_len, data_len),
        49 => wire__crate__create_djot_image_from_json_impl(port, ptr, rust_vec_len, data_len),
        50 => wire__crate__create_djot_link_from_json_impl(port, ptr, rust_vec_len, data_len),
        51 => wire__crate__create_document_extractor_dart_impl_impl(port, ptr, rust_vec_len, data_len),
        52 => wire__crate__create_document_node_from_json_impl(port, ptr, rust_vec_len, data_len),
        53 => wire__crate__create_document_relationship_from_json_impl(port, ptr, rust_vec_len, data_len),
        54 => wire__crate__create_document_revision_from_json_impl(port, ptr, rust_vec_len, data_len),
        55 => wire__crate__create_document_structure_from_json_impl(port, ptr, rust_vec_len, data_len),
        56 => wire__crate__create_docx_app_properties_from_json_impl(port, ptr, rust_vec_len, data_len),
        57 => wire__crate__create_docx_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        58 => wire__crate__create_element_from_json_impl(port, ptr, rust_vec_len, data_len),
        59 => wire__crate__create_element_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        60 => wire__crate__create_email_attachment_from_json_impl(port, ptr, rust_vec_len, data_len),
        61 => wire__crate__create_email_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        62 => wire__crate__create_email_extraction_result_from_json_impl(port, ptr, rust_vec_len, data_len),
        63 => wire__crate__create_email_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        64 => wire__crate__create_embedded_changes_from_json_impl(port, ptr, rust_vec_len, data_len),
        65 => wire__crate__create_embedded_diff_from_json_impl(port, ptr, rust_vec_len, data_len),
        66 => wire__crate__create_embedded_file_from_json_impl(port, ptr, rust_vec_len, data_len),
        67 => wire__crate__create_embedding_backend_dart_impl_impl(port, ptr, rust_vec_len, data_len),
        68 => wire__crate__create_embedding_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        69 => wire__crate__create_embedding_preset_from_json_impl(port, ptr, rust_vec_len, data_len),
        70 => wire__crate__create_epub_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        71 => wire__crate__create_error_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        72 => wire__crate__create_excel_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        73 => wire__crate__create_excel_sheet_from_json_impl(port, ptr, rust_vec_len, data_len),
        74 => wire__crate__create_excel_workbook_from_json_impl(port, ptr, rust_vec_len, data_len),
        75 => wire__crate__create_extracted_image_from_json_impl(port, ptr, rust_vec_len, data_len),
        76 => wire__crate__create_extracted_uri_from_json_impl(port, ptr, rust_vec_len, data_len),
        77 => wire__crate__create_extraction_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        78 => wire__crate__create_extraction_diff_from_json_impl(port, ptr, rust_vec_len, data_len),
        79 => wire__crate__create_extraction_result_from_json_impl(port, ptr, rust_vec_len, data_len),
        80 => wire__crate__create_fiction_book_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        81 => wire__crate__create_file_extraction_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        82 => wire__crate__create_footnote_from_json_impl(port, ptr, rust_vec_len, data_len),
        83 => wire__crate__create_formatted_block_from_json_impl(port, ptr, rust_vec_len, data_len),
        84 => wire__crate__create_grid_cell_from_json_impl(port, ptr, rust_vec_len, data_len),
        85 => wire__crate__create_header_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        86 => wire__crate__create_heading_context_from_json_impl(port, ptr, rust_vec_len, data_len),
        87 => wire__crate__create_heading_level_from_json_impl(port, ptr, rust_vec_len, data_len),
        88 => wire__crate__create_hierarchical_block_from_json_impl(port, ptr, rust_vec_len, data_len),
        89 => wire__crate__create_hierarchy_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        90 => wire__crate__create_html_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        91 => wire__crate__create_html_output_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        92 => wire__crate__create_image_extraction_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        93 => wire__crate__create_image_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        94 => wire__crate__create_image_metadata_type_from_json_impl(port, ptr, rust_vec_len, data_len),
        95 => wire__crate__create_image_preprocessing_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        96 => wire__crate__create_image_preprocessing_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        97 => wire__crate__create_inline_element_from_json_impl(port, ptr, rust_vec_len, data_len),
        98 => wire__crate__create_jats_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        99 => wire__crate__create_keyword_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        100 => wire__crate__create_keyword_from_json_impl(port, ptr, rust_vec_len, data_len),
        101 => wire__crate__create_language_detection_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        102 => wire__crate__create_layout_detection_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        103 => wire__crate__create_layout_detection_from_json_impl(port, ptr, rust_vec_len, data_len),
        104 => wire__crate__create_layout_region_from_json_impl(port, ptr, rust_vec_len, data_len),
        105 => wire__crate__create_link_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        106 => wire__crate__create_llm_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        107 => wire__crate__create_llm_usage_from_json_impl(port, ptr, rust_vec_len, data_len),
        108 => wire__crate__create_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        109 => wire__crate__create_model_paths_from_json_impl(port, ptr, rust_vec_len, data_len),
        110 => wire__crate__create_ocr_backend_dart_impl_impl(port, ptr, rust_vec_len, data_len),
        111 => wire__crate__create_ocr_confidence_from_json_impl(port, ptr, rust_vec_len, data_len),
        112 => wire__crate__create_ocr_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        113 => wire__crate__create_ocr_element_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        114 => wire__crate__create_ocr_element_from_json_impl(port, ptr, rust_vec_len, data_len),
        115 => wire__crate__create_ocr_extraction_result_from_json_impl(port, ptr, rust_vec_len, data_len),
        116 => wire__crate__create_ocr_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        117 => wire__crate__create_ocr_pipeline_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        118 => wire__crate__create_ocr_pipeline_stage_from_json_impl(port, ptr, rust_vec_len, data_len),
        119 => wire__crate__create_ocr_quality_thresholds_from_json_impl(port, ptr, rust_vec_len, data_len),
        120 => wire__crate__create_ocr_rotation_from_json_impl(port, ptr, rust_vec_len, data_len),
        121 => wire__crate__create_ocr_table_bounding_box_from_json_impl(port, ptr, rust_vec_len, data_len),
        122 => wire__crate__create_ocr_table_from_json_impl(port, ptr, rust_vec_len, data_len),
        123 => wire__crate__create_orientation_result_from_json_impl(port, ptr, rust_vec_len, data_len),
        124 => wire__crate__create_paddle_ocr_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        125 => wire__crate__create_page_boundary_from_json_impl(port, ptr, rust_vec_len, data_len),
        126 => wire__crate__create_page_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        127 => wire__crate__create_page_content_from_json_impl(port, ptr, rust_vec_len, data_len),
        128 => wire__crate__create_page_hierarchy_from_json_impl(port, ptr, rust_vec_len, data_len),
        129 => wire__crate__create_page_info_from_json_impl(port, ptr, rust_vec_len, data_len),
        130 => wire__crate__create_page_structure_from_json_impl(port, ptr, rust_vec_len, data_len),
        131 => wire__crate__create_pdf_annotation_from_json_impl(port, ptr, rust_vec_len, data_len),
        132 => wire__crate__create_pdf_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        133 => wire__crate__create_pdf_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        134 => wire__crate__create_post_processor_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        135 => wire__crate__create_post_processor_dart_impl_impl(port, ptr, rust_vec_len, data_len),
        136 => wire__crate__create_pptx_app_properties_from_json_impl(port, ptr, rust_vec_len, data_len),
        137 => wire__crate__create_pptx_extraction_result_from_json_impl(port, ptr, rust_vec_len, data_len),
        138 => wire__crate__create_pptx_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        139 => wire__crate__create_processing_warning_from_json_impl(port, ptr, rust_vec_len, data_len),
        140 => wire__crate__create_pst_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        141 => wire__crate__create_rake_params_from_json_impl(port, ptr, rust_vec_len, data_len),
        142 => wire__crate__create_recognized_table_from_json_impl(port, ptr, rust_vec_len, data_len),
        143 => wire__crate__create_renderer_dart_impl_impl(port, ptr, rust_vec_len, data_len),
        144 => wire__crate__create_revision_delta_from_json_impl(port, ptr, rust_vec_len, data_len),
        145 => wire__crate__create_security_limits_from_json_impl(port, ptr, rust_vec_len, data_len),
        146 => wire__crate__create_server_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        147 => wire__crate__create_structured_data_from_json_impl(port, ptr, rust_vec_len, data_len),
        148 => wire__crate__create_structured_data_result_from_json_impl(port, ptr, rust_vec_len, data_len),
        149 => wire__crate__create_structured_extraction_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        150 => wire__crate__create_supported_format_from_json_impl(port, ptr, rust_vec_len, data_len),
        151 => wire__crate__create_table_cell_from_json_impl(port, ptr, rust_vec_len, data_len),
        152 => wire__crate__create_table_diff_from_json_impl(port, ptr, rust_vec_len, data_len),
        153 => wire__crate__create_table_from_json_impl(port, ptr, rust_vec_len, data_len),
        154 => wire__crate__create_table_grid_from_json_impl(port, ptr, rust_vec_len, data_len),
        155 => wire__crate__create_tesseract_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        156 => wire__crate__create_text_annotation_from_json_impl(port, ptr, rust_vec_len, data_len),
        157 => wire__crate__create_text_extraction_result_from_json_impl(port, ptr, rust_vec_len, data_len),
        158 => wire__crate__create_text_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        159 => wire__crate__create_token_reduction_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        160 => wire__crate__create_token_reduction_options_from_json_impl(port, ptr, rust_vec_len, data_len),
        161 => wire__crate__create_tree_sitter_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        162 => wire__crate__create_tree_sitter_process_config_from_json_impl(port, ptr, rust_vec_len, data_len),
        163 => wire__crate__create_validator_dart_impl_impl(port, ptr, rust_vec_len, data_len),
        164 => wire__crate__create_xlsx_app_properties_from_json_impl(port, ptr, rust_vec_len, data_len),
        165 => wire__crate__create_xml_extraction_result_from_json_impl(port, ptr, rust_vec_len, data_len),
        166 => wire__crate__create_xml_metadata_from_json_impl(port, ptr, rust_vec_len, data_len),
        167 => wire__crate__create_yake_params_from_json_impl(port, ptr, rust_vec_len, data_len),
        168 => wire__crate__create_year_range_from_json_impl(port, ptr, rust_vec_len, data_len),
        169 => wire__crate__detect_mime_type_impl(port, ptr, rust_vec_len, data_len),
        170 => wire__crate__detect_mime_type_from_bytes_impl(port, ptr, rust_vec_len, data_len),
        171 => wire__crate__embed_texts_impl(port, ptr, rust_vec_len, data_len),
        172 => wire__crate__embed_texts_async_impl(port, ptr, rust_vec_len, data_len),
        173 => wire__crate__extract_bytes_impl(port, ptr, rust_vec_len, data_len),
        174 => wire__crate__extract_bytes_sync_impl(port, ptr, rust_vec_len, data_len),
        175 => wire__crate__extract_file_impl(port, ptr, rust_vec_len, data_len),
        176 => wire__crate__extract_file_sync_impl(port, ptr, rust_vec_len, data_len),
        177 => wire__crate__get_embedding_preset_impl(port, ptr, rust_vec_len, data_len),
        178 => wire__crate__get_extensions_for_mime_impl(port, ptr, rust_vec_len, data_len),
        179 => wire__crate__list_document_extractors_impl(port, ptr, rust_vec_len, data_len),
        180 => wire__crate__list_embedding_backends_impl(port, ptr, rust_vec_len, data_len),
        181 => wire__crate__list_embedding_presets_impl(port, ptr, rust_vec_len, data_len),
        182 => wire__crate__list_ocr_backends_impl(port, ptr, rust_vec_len, data_len),
        183 => wire__crate__list_post_processors_impl(port, ptr, rust_vec_len, data_len),
        184 => wire__crate__list_renderers_impl(port, ptr, rust_vec_len, data_len),
        185 => wire__crate__list_validators_impl(port, ptr, rust_vec_len, data_len),
        186 => wire__crate__register_document_extractor_impl(port, ptr, rust_vec_len, data_len),
        187 => wire__crate__register_embedding_backend_impl(port, ptr, rust_vec_len, data_len),
        188 => wire__crate__register_ocr_backend_impl(port, ptr, rust_vec_len, data_len),
        189 => wire__crate__register_post_processor_impl(port, ptr, rust_vec_len, data_len),
        190 => wire__crate__register_renderer_impl(port, ptr, rust_vec_len, data_len),
        191 => wire__crate__register_validator_impl(port, ptr, rust_vec_len, data_len),
        192 => wire__crate__render_pdf_page_to_png_impl(port, ptr, rust_vec_len, data_len),
        193 => wire__crate__unregister_document_extractor_impl(port, ptr, rust_vec_len, data_len),
        194 => wire__crate__unregister_embedding_backend_impl(port, ptr, rust_vec_len, data_len),
        195 => wire__crate__unregister_ocr_backend_impl(port, ptr, rust_vec_len, data_len),
        196 => wire__crate__unregister_post_processor_impl(port, ptr, rust_vec_len, data_len),
        197 => wire__crate__unregister_renderer_impl(port, ptr, rust_vec_len, data_len),
        198 => wire__crate__unregister_validator_impl(port, ptr, rust_vec_len, data_len),
        _ => unreachable!(),
    }
}

fn pde_ffi_dispatcher_sync_impl(
    func_id: i32,
    ptr: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr,
    rust_vec_len: i32,
    data_len: i32,
) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse {
    // Codec=Pde (Serialization + dispatch), see doc to use other codecs
    match func_id {
        1 => wire__crate__DocumentExtractorDartImpl_auto_accessor_get_field0_impl(ptr, rust_vec_len, data_len),
        2 => wire__crate__DocumentExtractorDartImpl_auto_accessor_set_field0_impl(ptr, rust_vec_len, data_len),
        3 => wire__crate__EmbeddingBackendDartImpl_auto_accessor_get_field0_impl(ptr, rust_vec_len, data_len),
        4 => wire__crate__EmbeddingBackendDartImpl_auto_accessor_set_field0_impl(ptr, rust_vec_len, data_len),
        5 => wire__crate__OcrBackendDartImpl_auto_accessor_get_field0_impl(ptr, rust_vec_len, data_len),
        6 => wire__crate__OcrBackendDartImpl_auto_accessor_set_field0_impl(ptr, rust_vec_len, data_len),
        7 => wire__crate__PostProcessorDartImpl_auto_accessor_get_field0_impl(ptr, rust_vec_len, data_len),
        8 => wire__crate__PostProcessorDartImpl_auto_accessor_set_field0_impl(ptr, rust_vec_len, data_len),
        9 => wire__crate__RendererDartImpl_auto_accessor_get_field0_impl(ptr, rust_vec_len, data_len),
        10 => wire__crate__RendererDartImpl_auto_accessor_set_field0_impl(ptr, rust_vec_len, data_len),
        11 => wire__crate__ValidatorDartImpl_auto_accessor_get_field0_impl(ptr, rust_vec_len, data_len),
        12 => wire__crate__ValidatorDartImpl_auto_accessor_set_field0_impl(ptr, rust_vec_len, data_len),
        _ => unreachable!(),
    }
}

// Section: rust2dart

// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<Arc<dyn DocumentExtractor + Send + Sync>> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0).into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive
    for FrbWrapper<Arc<dyn DocumentExtractor + Send + Sync>>
{
}

impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<Arc<dyn DocumentExtractor + Send + Sync>>>
    for Arc<dyn DocumentExtractor + Send + Sync>
{
    fn into_into_dart(self) -> FrbWrapper<Arc<dyn DocumentExtractor + Send + Sync>> {
        self.into()
    }
}

// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<Arc<dyn EmbeddingBackend + Send + Sync>> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0).into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive
    for FrbWrapper<Arc<dyn EmbeddingBackend + Send + Sync>>
{
}

impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<Arc<dyn EmbeddingBackend + Send + Sync>>>
    for Arc<dyn EmbeddingBackend + Send + Sync>
{
    fn into_into_dart(self) -> FrbWrapper<Arc<dyn EmbeddingBackend + Send + Sync>> {
        self.into()
    }
}

// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<Arc<dyn OcrBackend + Send + Sync>> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0).into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<Arc<dyn OcrBackend + Send + Sync>> {}

impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<Arc<dyn OcrBackend + Send + Sync>>>
    for Arc<dyn OcrBackend + Send + Sync>
{
    fn into_into_dart(self) -> FrbWrapper<Arc<dyn OcrBackend + Send + Sync>> {
        self.into()
    }
}

// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<Arc<dyn PostProcessor + Send + Sync>> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0).into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<Arc<dyn PostProcessor + Send + Sync>> {}

impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<Arc<dyn PostProcessor + Send + Sync>>>
    for Arc<dyn PostProcessor + Send + Sync>
{
    fn into_into_dart(self) -> FrbWrapper<Arc<dyn PostProcessor + Send + Sync>> {
        self.into()
    }
}

// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<Arc<dyn Renderer + Send + Sync>> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0).into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<Arc<dyn Renderer + Send + Sync>> {}

impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<Arc<dyn Renderer + Send + Sync>>>
    for Arc<dyn Renderer + Send + Sync>
{
    fn into_into_dart(self) -> FrbWrapper<Arc<dyn Renderer + Send + Sync>> {
        self.into()
    }
}

// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<Arc<dyn Validator + Send + Sync>> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0).into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<Arc<dyn Validator + Send + Sync>> {}

impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<Arc<dyn Validator + Send + Sync>>>
    for Arc<dyn Validator + Send + Sync>
{
    fn into_into_dart(self) -> FrbWrapper<Arc<dyn Validator + Send + Sync>> {
        self.into()
    }
}

// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<DocumentExtractorDartImpl> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0).into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<DocumentExtractorDartImpl> {}

impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<DocumentExtractorDartImpl>> for DocumentExtractorDartImpl {
    fn into_into_dart(self) -> FrbWrapper<DocumentExtractorDartImpl> {
        self.into()
    }
}

// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<EmbeddingBackendDartImpl> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0).into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<EmbeddingBackendDartImpl> {}

impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<EmbeddingBackendDartImpl>> for EmbeddingBackendDartImpl {
    fn into_into_dart(self) -> FrbWrapper<EmbeddingBackendDartImpl> {
        self.into()
    }
}

// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<OcrBackendDartImpl> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0).into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<OcrBackendDartImpl> {}

impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<OcrBackendDartImpl>> for OcrBackendDartImpl {
    fn into_into_dart(self) -> FrbWrapper<OcrBackendDartImpl> {
        self.into()
    }
}

// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<PostProcessorDartImpl> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0).into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<PostProcessorDartImpl> {}

impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<PostProcessorDartImpl>> for PostProcessorDartImpl {
    fn into_into_dart(self) -> FrbWrapper<PostProcessorDartImpl> {
        self.into()
    }
}

// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<RendererDartImpl> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0).into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<RendererDartImpl> {}

impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<RendererDartImpl>> for RendererDartImpl {
    fn into_into_dart(self) -> FrbWrapper<RendererDartImpl> {
        self.into()
    }
}

// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<ValidatorDartImpl> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0).into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<ValidatorDartImpl> {}

impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<ValidatorDartImpl>> for ValidatorDartImpl {
    fn into_into_dart(self) -> FrbWrapper<ValidatorDartImpl> {
        self.into()
    }
}

// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::AccelerationConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.provider.into_into_dart().into_dart(),
            self.0.device_id.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::AccelerationConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::AccelerationConfig>> for crate::AccelerationConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::AccelerationConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::AnnotationKind> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::AnnotationKind::Bold => [0.into_dart()].into_dart(),
            crate::AnnotationKind::Italic => [1.into_dart()].into_dart(),
            crate::AnnotationKind::Underline => [2.into_dart()].into_dart(),
            crate::AnnotationKind::Strikethrough => [3.into_dart()].into_dart(),
            crate::AnnotationKind::Code => [4.into_dart()].into_dart(),
            crate::AnnotationKind::Subscript => [5.into_dart()].into_dart(),
            crate::AnnotationKind::Superscript => [6.into_dart()].into_dart(),
            crate::AnnotationKind::Link { url, title } => [
                7.into_dart(),
                url.into_into_dart().into_dart(),
                title.into_into_dart().into_dart(),
            ]
            .into_dart(),
            crate::AnnotationKind::Highlight => [8.into_dart()].into_dart(),
            crate::AnnotationKind::Color { value } => [9.into_dart(), value.into_into_dart().into_dart()].into_dart(),
            crate::AnnotationKind::FontSize { value } => {
                [10.into_dart(), value.into_into_dart().into_dart()].into_dart()
            }
            crate::AnnotationKind::Custom { name, value } => [
                11.into_dart(),
                name.into_into_dart().into_dart(),
                value.into_into_dart().into_dart(),
            ]
            .into_dart(),
            _ => {
                unimplemented!("");
            }
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::AnnotationKind> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::AnnotationKind>> for crate::AnnotationKind {
    fn into_into_dart(self) -> FrbWrapper<crate::AnnotationKind> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ArchiveEntry> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.path.into_into_dart().into_dart(),
            self.0.mime_type.into_into_dart().into_dart(),
            self.0.result.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ArchiveEntry> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ArchiveEntry>> for crate::ArchiveEntry {
    fn into_into_dart(self) -> FrbWrapper<crate::ArchiveEntry> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ArchiveMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.format.into_into_dart().into_dart(),
            self.0.file_count.into_into_dart().into_dart(),
            self.0.file_list.into_into_dart().into_dart(),
            self.0.total_size.into_into_dart().into_dart(),
            self.0.compressed_size.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ArchiveMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ArchiveMetadata>> for crate::ArchiveMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::ArchiveMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::BBox> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.x1.into_into_dart().into_dart(),
            self.0.y1.into_into_dart().into_dart(),
            self.0.x2.into_into_dart().into_dart(),
            self.0.y2.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::BBox> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::BBox>> for crate::BBox {
    fn into_into_dart(self) -> FrbWrapper<crate::BBox> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::BatchBytesItem> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.content.into_into_dart().into_dart(),
            self.0.mime_type.into_into_dart().into_dart(),
            self.0.config.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::BatchBytesItem> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::BatchBytesItem>> for crate::BatchBytesItem {
    fn into_into_dart(self) -> FrbWrapper<crate::BatchBytesItem> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::BatchFileItem> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.path.into_into_dart().into_dart(),
            self.0.config.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::BatchFileItem> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::BatchFileItem>> for crate::BatchFileItem {
    fn into_into_dart(self) -> FrbWrapper<crate::BatchFileItem> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::BibtexMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.entry_count.into_into_dart().into_dart(),
            self.0.citation_keys.into_into_dart().into_dart(),
            self.0.authors.into_into_dart().into_dart(),
            self.0.year_range.into_into_dart().into_dart(),
            self.0.entry_types.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::BibtexMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::BibtexMetadata>> for crate::BibtexMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::BibtexMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::BlockType> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::BlockType::Paragraph => 0.into_dart(),
            crate::BlockType::Heading => 1.into_dart(),
            crate::BlockType::Blockquote => 2.into_dart(),
            crate::BlockType::CodeBlock => 3.into_dart(),
            crate::BlockType::ListItem => 4.into_dart(),
            crate::BlockType::OrderedList => 5.into_dart(),
            crate::BlockType::BulletList => 6.into_dart(),
            crate::BlockType::TaskList => 7.into_dart(),
            crate::BlockType::DefinitionList => 8.into_dart(),
            crate::BlockType::DefinitionTerm => 9.into_dart(),
            crate::BlockType::DefinitionDescription => 10.into_dart(),
            crate::BlockType::Div => 11.into_dart(),
            crate::BlockType::Section => 12.into_dart(),
            crate::BlockType::ThematicBreak => 13.into_dart(),
            crate::BlockType::RawBlock => 14.into_dart(),
            crate::BlockType::MathDisplay => 15.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::BlockType> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::BlockType>> for crate::BlockType {
    fn into_into_dart(self) -> FrbWrapper<crate::BlockType> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::BoundingBox> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.x0.into_into_dart().into_dart(),
            self.0.y0.into_into_dart().into_dart(),
            self.0.x1.into_into_dart().into_dart(),
            self.0.y1.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::BoundingBox> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::BoundingBox>> for crate::BoundingBox {
    fn into_into_dart(self) -> FrbWrapper<crate::BoundingBox> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::CacheStats> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.total_files.into_into_dart().into_dart(),
            self.0.total_size_mb.into_into_dart().into_dart(),
            self.0.available_space_mb.into_into_dart().into_dart(),
            self.0.oldest_file_age_days.into_into_dart().into_dart(),
            self.0.newest_file_age_days.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::CacheStats> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::CacheStats>> for crate::CacheStats {
    fn into_into_dart(self) -> FrbWrapper<crate::CacheStats> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::CellChange> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.row.into_into_dart().into_dart(),
            self.0.col.into_into_dart().into_dart(),
            self.0.from.into_into_dart().into_dart(),
            self.0.to.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::CellChange> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::CellChange>> for crate::CellChange {
    fn into_into_dart(self) -> FrbWrapper<crate::CellChange> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::Chunk> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.content.into_into_dart().into_dart(),
            self.0.chunk_type.into_into_dart().into_dart(),
            self.0.embedding.into_into_dart().into_dart(),
            self.0.metadata.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::Chunk> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::Chunk>> for crate::Chunk {
    fn into_into_dart(self) -> FrbWrapper<crate::Chunk> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ChunkMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.byte_start.into_into_dart().into_dart(),
            self.0.byte_end.into_into_dart().into_dart(),
            self.0.token_count.into_into_dart().into_dart(),
            self.0.chunk_index.into_into_dart().into_dart(),
            self.0.total_chunks.into_into_dart().into_dart(),
            self.0.first_page.into_into_dart().into_dart(),
            self.0.last_page.into_into_dart().into_dart(),
            self.0.heading_context.into_into_dart().into_dart(),
            self.0.image_indices.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ChunkMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ChunkMetadata>> for crate::ChunkMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::ChunkMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ChunkSizing> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::ChunkSizing::Characters => [0.into_dart()].into_dart(),
            crate::ChunkSizing::Tokenizer { model, cache_dir } => [
                1.into_dart(),
                model.into_into_dart().into_dart(),
                cache_dir.into_into_dart().into_dart(),
            ]
            .into_dart(),
            _ => {
                unimplemented!("");
            }
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ChunkSizing> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ChunkSizing>> for crate::ChunkSizing {
    fn into_into_dart(self) -> FrbWrapper<crate::ChunkSizing> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ChunkType> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::ChunkType::Heading => 0.into_dart(),
            crate::ChunkType::PartyList => 1.into_dart(),
            crate::ChunkType::Definitions => 2.into_dart(),
            crate::ChunkType::OperativeClause => 3.into_dart(),
            crate::ChunkType::SignatureBlock => 4.into_dart(),
            crate::ChunkType::Schedule => 5.into_dart(),
            crate::ChunkType::TableLike => 6.into_dart(),
            crate::ChunkType::Formula => 7.into_dart(),
            crate::ChunkType::CodeBlock => 8.into_dart(),
            crate::ChunkType::Image => 9.into_dart(),
            crate::ChunkType::OrgChart => 10.into_dart(),
            crate::ChunkType::Diagram => 11.into_dart(),
            crate::ChunkType::Unknown => 12.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ChunkType> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ChunkType>> for crate::ChunkType {
    fn into_into_dart(self) -> FrbWrapper<crate::ChunkType> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ChunkerType> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::ChunkerType::Text => 0.into_dart(),
            crate::ChunkerType::Markdown => 1.into_dart(),
            crate::ChunkerType::Yaml => 2.into_dart(),
            crate::ChunkerType::Semantic => 3.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ChunkerType> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ChunkerType>> for crate::ChunkerType {
    fn into_into_dart(self) -> FrbWrapper<crate::ChunkerType> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ChunkingConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.max_characters.into_into_dart().into_dart(),
            self.0.overlap.into_into_dart().into_dart(),
            self.0.trim.into_into_dart().into_dart(),
            self.0.chunker_type.into_into_dart().into_dart(),
            self.0.embedding.into_into_dart().into_dart(),
            self.0.preset.into_into_dart().into_dart(),
            self.0.sizing.into_into_dart().into_dart(),
            self.0.prepend_heading_context.into_into_dart().into_dart(),
            self.0.topic_threshold.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ChunkingConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ChunkingConfig>> for crate::ChunkingConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::ChunkingConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::CitationMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.citation_count.into_into_dart().into_dart(),
            self.0.format.into_into_dart().into_dart(),
            self.0.authors.into_into_dart().into_dart(),
            self.0.year_range.into_into_dart().into_dart(),
            self.0.dois.into_into_dart().into_dart(),
            self.0.keywords.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::CitationMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::CitationMetadata>> for crate::CitationMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::CitationMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::CodeContentMode> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::CodeContentMode::Chunks => 0.into_dart(),
            crate::CodeContentMode::Raw => 1.into_dart(),
            crate::CodeContentMode::Structure => 2.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::CodeContentMode> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::CodeContentMode>> for crate::CodeContentMode {
    fn into_into_dart(self) -> FrbWrapper<crate::CodeContentMode> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ContentFilterConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.include_headers.into_into_dart().into_dart(),
            self.0.include_footers.into_into_dart().into_dart(),
            self.0.strip_repeating_text.into_into_dart().into_dart(),
            self.0.include_watermarks.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ContentFilterConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ContentFilterConfig>> for crate::ContentFilterConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::ContentFilterConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ContentLayer> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::ContentLayer::Body => 0.into_dart(),
            crate::ContentLayer::Header => 1.into_dart(),
            crate::ContentLayer::Footer => 2.into_dart(),
            crate::ContentLayer::Footnote => 3.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ContentLayer> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ContentLayer>> for crate::ContentLayer {
    fn into_into_dart(self) -> FrbWrapper<crate::ContentLayer> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ContributorRole> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.name.into_into_dart().into_dart(),
            self.0.role.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ContributorRole> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ContributorRole>> for crate::ContributorRole {
    fn into_into_dart(self) -> FrbWrapper<crate::ContributorRole> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::CoreProperties> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.title.into_into_dart().into_dart(),
            self.0.subject.into_into_dart().into_dart(),
            self.0.creator.into_into_dart().into_dart(),
            self.0.keywords.into_into_dart().into_dart(),
            self.0.description.into_into_dart().into_dart(),
            self.0.last_modified_by.into_into_dart().into_dart(),
            self.0.revision.into_into_dart().into_dart(),
            self.0.created.into_into_dart().into_dart(),
            self.0.modified.into_into_dart().into_dart(),
            self.0.category.into_into_dart().into_dart(),
            self.0.content_status.into_into_dart().into_dart(),
            self.0.language.into_into_dart().into_dart(),
            self.0.identifier.into_into_dart().into_dart(),
            self.0.version.into_into_dart().into_dart(),
            self.0.last_printed.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::CoreProperties> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::CoreProperties>> for crate::CoreProperties {
    fn into_into_dart(self) -> FrbWrapper<crate::CoreProperties> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::CsvMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.row_count.into_into_dart().into_dart(),
            self.0.column_count.into_into_dart().into_dart(),
            self.0.delimiter.into_into_dart().into_dart(),
            self.0.has_header.into_into_dart().into_dart(),
            self.0.column_types.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::CsvMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::CsvMetadata>> for crate::CsvMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::CsvMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::DbfFieldInfo> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.name.into_into_dart().into_dart(),
            self.0.field_type.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::DbfFieldInfo> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::DbfFieldInfo>> for crate::DbfFieldInfo {
    fn into_into_dart(self) -> FrbWrapper<crate::DbfFieldInfo> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::DbfMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.record_count.into_into_dart().into_dart(),
            self.0.field_count.into_into_dart().into_dart(),
            self.0.fields.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::DbfMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::DbfMetadata>> for crate::DbfMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::DbfMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::DetectResponse> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.mime_type.into_into_dart().into_dart(),
            self.0.filename.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::DetectResponse> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::DetectResponse>> for crate::DetectResponse {
    fn into_into_dart(self) -> FrbWrapper<crate::DetectResponse> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::DetectionResult> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.page_width.into_into_dart().into_dart(),
            self.0.page_height.into_into_dart().into_dart(),
            self.0.detections.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::DetectionResult> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::DetectionResult>> for crate::DetectionResult {
    fn into_into_dart(self) -> FrbWrapper<crate::DetectionResult> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::DiffHunk> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.from_line.into_into_dart().into_dart(),
            self.0.from_count.into_into_dart().into_dart(),
            self.0.to_line.into_into_dart().into_dart(),
            self.0.to_count.into_into_dart().into_dart(),
            self.0.lines.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::DiffHunk> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::DiffHunk>> for crate::DiffHunk {
    fn into_into_dart(self) -> FrbWrapper<crate::DiffHunk> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::DiffLine> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::DiffLine::Context { field0 } => [0.into_dart(), field0.into_into_dart().into_dart()].into_dart(),
            crate::DiffLine::Added { field0 } => [1.into_dart(), field0.into_into_dart().into_dart()].into_dart(),
            crate::DiffLine::Removed { field0 } => [2.into_dart(), field0.into_into_dart().into_dart()].into_dart(),
            _ => {
                unimplemented!("");
            }
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::DiffLine> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::DiffLine>> for crate::DiffLine {
    fn into_into_dart(self) -> FrbWrapper<crate::DiffLine> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::DiffOptions> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.include_metadata.into_into_dart().into_dart(),
            self.0.include_embedded.into_into_dart().into_dart(),
            self.0.max_content_chars.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::DiffOptions> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::DiffOptions>> for crate::DiffOptions {
    fn into_into_dart(self) -> FrbWrapper<crate::DiffOptions> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::DjotContent> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.plain_text.into_into_dart().into_dart(),
            self.0.blocks.into_into_dart().into_dart(),
            self.0.metadata.into_into_dart().into_dart(),
            self.0.tables.into_into_dart().into_dart(),
            self.0.images.into_into_dart().into_dart(),
            self.0.links.into_into_dart().into_dart(),
            self.0.footnotes.into_into_dart().into_dart(),
            self.0.attributes.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::DjotContent> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::DjotContent>> for crate::DjotContent {
    fn into_into_dart(self) -> FrbWrapper<crate::DjotContent> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::DjotImage> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.src.into_into_dart().into_dart(),
            self.0.alt.into_into_dart().into_dart(),
            self.0.title.into_into_dart().into_dart(),
            self.0.attributes.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::DjotImage> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::DjotImage>> for crate::DjotImage {
    fn into_into_dart(self) -> FrbWrapper<crate::DjotImage> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::DjotLink> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.url.into_into_dart().into_dart(),
            self.0.text.into_into_dart().into_dart(),
            self.0.title.into_into_dart().into_dart(),
            self.0.attributes.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::DjotLink> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::DjotLink>> for crate::DjotLink {
    fn into_into_dart(self) -> FrbWrapper<crate::DjotLink> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::DocumentNode> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.id.into_into_dart().into_dart(),
            self.0.content.into_into_dart().into_dart(),
            self.0.parent.into_into_dart().into_dart(),
            self.0.children.into_into_dart().into_dart(),
            self.0.content_layer.into_into_dart().into_dart(),
            self.0.page.into_into_dart().into_dart(),
            self.0.page_end.into_into_dart().into_dart(),
            self.0.bbox.into_into_dart().into_dart(),
            self.0.annotations.into_into_dart().into_dart(),
            self.0.attributes.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::DocumentNode> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::DocumentNode>> for crate::DocumentNode {
    fn into_into_dart(self) -> FrbWrapper<crate::DocumentNode> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::DocumentRelationship> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.source.into_into_dart().into_dart(),
            self.0.target.into_into_dart().into_dart(),
            self.0.kind.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::DocumentRelationship> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::DocumentRelationship>> for crate::DocumentRelationship {
    fn into_into_dart(self) -> FrbWrapper<crate::DocumentRelationship> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::DocumentRevision> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.revision_id.into_into_dart().into_dart(),
            self.0.author.into_into_dart().into_dart(),
            self.0.timestamp.into_into_dart().into_dart(),
            self.0.kind.into_into_dart().into_dart(),
            self.0.anchor.into_into_dart().into_dart(),
            self.0.delta.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::DocumentRevision> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::DocumentRevision>> for crate::DocumentRevision {
    fn into_into_dart(self) -> FrbWrapper<crate::DocumentRevision> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::DocumentStructure> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.nodes.into_into_dart().into_dart(),
            self.0.source_format.into_into_dart().into_dart(),
            self.0.relationships.into_into_dart().into_dart(),
            self.0.node_types.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::DocumentStructure> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::DocumentStructure>> for crate::DocumentStructure {
    fn into_into_dart(self) -> FrbWrapper<crate::DocumentStructure> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::DocxAppProperties> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.application.into_into_dart().into_dart(),
            self.0.app_version.into_into_dart().into_dart(),
            self.0.template.into_into_dart().into_dart(),
            self.0.total_time.into_into_dart().into_dart(),
            self.0.pages.into_into_dart().into_dart(),
            self.0.words.into_into_dart().into_dart(),
            self.0.characters.into_into_dart().into_dart(),
            self.0.characters_with_spaces.into_into_dart().into_dart(),
            self.0.lines.into_into_dart().into_dart(),
            self.0.paragraphs.into_into_dart().into_dart(),
            self.0.company.into_into_dart().into_dart(),
            self.0.doc_security.into_into_dart().into_dart(),
            self.0.scale_crop.into_into_dart().into_dart(),
            self.0.links_up_to_date.into_into_dart().into_dart(),
            self.0.shared_doc.into_into_dart().into_dart(),
            self.0.hyperlinks_changed.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::DocxAppProperties> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::DocxAppProperties>> for crate::DocxAppProperties {
    fn into_into_dart(self) -> FrbWrapper<crate::DocxAppProperties> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::DocxMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.core_properties.into_into_dart().into_dart(),
            self.0.app_properties.into_into_dart().into_dart(),
            self.0.custom_properties.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::DocxMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::DocxMetadata>> for crate::DocxMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::DocxMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::Element> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.element_id.into_into_dart().into_dart(),
            self.0.element_type.into_into_dart().into_dart(),
            self.0.text.into_into_dart().into_dart(),
            self.0.metadata.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::Element> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::Element>> for crate::Element {
    fn into_into_dart(self) -> FrbWrapper<crate::Element> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ElementMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.page_number.into_into_dart().into_dart(),
            self.0.filename.into_into_dart().into_dart(),
            self.0.coordinates.into_into_dart().into_dart(),
            self.0.element_index.into_into_dart().into_dart(),
            self.0.additional.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ElementMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ElementMetadata>> for crate::ElementMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::ElementMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ElementType> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::ElementType::Title => 0.into_dart(),
            crate::ElementType::NarrativeText => 1.into_dart(),
            crate::ElementType::Heading => 2.into_dart(),
            crate::ElementType::ListItem => 3.into_dart(),
            crate::ElementType::Table => 4.into_dart(),
            crate::ElementType::Image => 5.into_dart(),
            crate::ElementType::PageBreak => 6.into_dart(),
            crate::ElementType::CodeBlock => 7.into_dart(),
            crate::ElementType::BlockQuote => 8.into_dart(),
            crate::ElementType::Footer => 9.into_dart(),
            crate::ElementType::Header => 10.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ElementType> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ElementType>> for crate::ElementType {
    fn into_into_dart(self) -> FrbWrapper<crate::ElementType> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::EmailAttachment> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.name.into_into_dart().into_dart(),
            self.0.filename.into_into_dart().into_dart(),
            self.0.mime_type.into_into_dart().into_dart(),
            self.0.size.into_into_dart().into_dart(),
            self.0.is_image.into_into_dart().into_dart(),
            self.0.data.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::EmailAttachment> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::EmailAttachment>> for crate::EmailAttachment {
    fn into_into_dart(self) -> FrbWrapper<crate::EmailAttachment> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::EmailConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [self.0.msg_fallback_codepage.into_into_dart().into_dart()].into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::EmailConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::EmailConfig>> for crate::EmailConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::EmailConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::EmailExtractionResult> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.subject.into_into_dart().into_dart(),
            self.0.from_email.into_into_dart().into_dart(),
            self.0.to_emails.into_into_dart().into_dart(),
            self.0.cc_emails.into_into_dart().into_dart(),
            self.0.bcc_emails.into_into_dart().into_dart(),
            self.0.date.into_into_dart().into_dart(),
            self.0.message_id.into_into_dart().into_dart(),
            self.0.plain_text.into_into_dart().into_dart(),
            self.0.html_content.into_into_dart().into_dart(),
            self.0.content.into_into_dart().into_dart(),
            self.0.attachments.into_into_dart().into_dart(),
            self.0.metadata.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::EmailExtractionResult> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::EmailExtractionResult>> for crate::EmailExtractionResult {
    fn into_into_dart(self) -> FrbWrapper<crate::EmailExtractionResult> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::EmailMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.from_email.into_into_dart().into_dart(),
            self.0.from_name.into_into_dart().into_dart(),
            self.0.to_emails.into_into_dart().into_dart(),
            self.0.cc_emails.into_into_dart().into_dart(),
            self.0.bcc_emails.into_into_dart().into_dart(),
            self.0.message_id.into_into_dart().into_dart(),
            self.0.attachments.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::EmailMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::EmailMetadata>> for crate::EmailMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::EmailMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::EmbeddedChanges> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.added.into_into_dart().into_dart(),
            self.0.removed.into_into_dart().into_dart(),
            self.0.changed.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::EmbeddedChanges> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::EmbeddedChanges>> for crate::EmbeddedChanges {
    fn into_into_dart(self) -> FrbWrapper<crate::EmbeddedChanges> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::EmbeddedDiff> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.path.into_into_dart().into_dart(),
            self.0.diff.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::EmbeddedDiff> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::EmbeddedDiff>> for crate::EmbeddedDiff {
    fn into_into_dart(self) -> FrbWrapper<crate::EmbeddedDiff> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::EmbeddedFile> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.name.into_into_dart().into_dart(),
            self.0.data.into_into_dart().into_dart(),
            self.0.compressed_size.into_into_dart().into_dart(),
            self.0.mime_type.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::EmbeddedFile> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::EmbeddedFile>> for crate::EmbeddedFile {
    fn into_into_dart(self) -> FrbWrapper<crate::EmbeddedFile> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::EmbeddingConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.model.into_into_dart().into_dart(),
            self.0.normalize.into_into_dart().into_dart(),
            self.0.batch_size.into_into_dart().into_dart(),
            self.0.show_download_progress.into_into_dart().into_dart(),
            self.0.cache_dir.into_into_dart().into_dart(),
            self.0.acceleration.into_into_dart().into_dart(),
            self.0.max_embed_duration_secs.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::EmbeddingConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::EmbeddingConfig>> for crate::EmbeddingConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::EmbeddingConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::EmbeddingModelType> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::EmbeddingModelType::Preset { name } => {
                [0.into_dart(), name.into_into_dart().into_dart()].into_dart()
            }
            crate::EmbeddingModelType::Custom { model_id, dimensions } => [
                1.into_dart(),
                model_id.into_into_dart().into_dart(),
                dimensions.into_into_dart().into_dart(),
            ]
            .into_dart(),
            crate::EmbeddingModelType::Llm { llm } => [2.into_dart(), llm.into_into_dart().into_dart()].into_dart(),
            crate::EmbeddingModelType::Plugin { name } => {
                [3.into_dart(), name.into_into_dart().into_dart()].into_dart()
            }
            _ => {
                unimplemented!("");
            }
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::EmbeddingModelType> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::EmbeddingModelType>> for crate::EmbeddingModelType {
    fn into_into_dart(self) -> FrbWrapper<crate::EmbeddingModelType> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::EmbeddingPreset> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.name.into_into_dart().into_dart(),
            self.0.chunk_size.into_into_dart().into_dart(),
            self.0.overlap.into_into_dart().into_dart(),
            self.0.model_repo.into_into_dart().into_dart(),
            self.0.pooling.into_into_dart().into_dart(),
            self.0.model_file.into_into_dart().into_dart(),
            self.0.dimensions.into_into_dart().into_dart(),
            self.0.description.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::EmbeddingPreset> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::EmbeddingPreset>> for crate::EmbeddingPreset {
    fn into_into_dart(self) -> FrbWrapper<crate::EmbeddingPreset> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::EpubMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.coverage.into_into_dart().into_dart(),
            self.0.dc_format.into_into_dart().into_dart(),
            self.0.relation.into_into_dart().into_dart(),
            self.0.source.into_into_dart().into_dart(),
            self.0.dc_type.into_into_dart().into_dart(),
            self.0.cover_image.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::EpubMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::EpubMetadata>> for crate::EpubMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::EpubMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ErrorMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.error_type.into_into_dart().into_dart(),
            self.0.message.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ErrorMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ErrorMetadata>> for crate::ErrorMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::ErrorMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ExcelMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.sheet_count.into_into_dart().into_dart(),
            self.0.sheet_names.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ExcelMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ExcelMetadata>> for crate::ExcelMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::ExcelMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ExcelSheet> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.name.into_into_dart().into_dart(),
            self.0.markdown.into_into_dart().into_dart(),
            self.0.row_count.into_into_dart().into_dart(),
            self.0.col_count.into_into_dart().into_dart(),
            self.0.cell_count.into_into_dart().into_dart(),
            self.0.table_cells.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ExcelSheet> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ExcelSheet>> for crate::ExcelSheet {
    fn into_into_dart(self) -> FrbWrapper<crate::ExcelSheet> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ExcelWorkbook> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.sheets.into_into_dart().into_dart(),
            self.0.metadata.into_into_dart().into_dart(),
            self.0.revisions.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ExcelWorkbook> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ExcelWorkbook>> for crate::ExcelWorkbook {
    fn into_into_dart(self) -> FrbWrapper<crate::ExcelWorkbook> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ExecutionProviderType> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::ExecutionProviderType::Auto => 0.into_dart(),
            crate::ExecutionProviderType::Cpu => 1.into_dart(),
            crate::ExecutionProviderType::CoreMl => 2.into_dart(),
            crate::ExecutionProviderType::Cuda => 3.into_dart(),
            crate::ExecutionProviderType::TensorRt => 4.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ExecutionProviderType> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ExecutionProviderType>> for crate::ExecutionProviderType {
    fn into_into_dart(self) -> FrbWrapper<crate::ExecutionProviderType> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ExtractedImage> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.data.into_into_dart().into_dart(),
            self.0.format.into_into_dart().into_dart(),
            self.0.image_index.into_into_dart().into_dart(),
            self.0.page_number.into_into_dart().into_dart(),
            self.0.width.into_into_dart().into_dart(),
            self.0.height.into_into_dart().into_dart(),
            self.0.colorspace.into_into_dart().into_dart(),
            self.0.bits_per_component.into_into_dart().into_dart(),
            self.0.is_mask.into_into_dart().into_dart(),
            self.0.description.into_into_dart().into_dart(),
            self.0.ocr_result.into_into_dart().into_dart(),
            self.0.bounding_box.into_into_dart().into_dart(),
            self.0.source_path.into_into_dart().into_dart(),
            self.0.image_kind.into_into_dart().into_dart(),
            self.0.kind_confidence.into_into_dart().into_dart(),
            self.0.cluster_id.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ExtractedImage> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ExtractedImage>> for crate::ExtractedImage {
    fn into_into_dart(self) -> FrbWrapper<crate::ExtractedImage> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ExtractedUri> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.url.into_into_dart().into_dart(),
            self.0.label.into_into_dart().into_dart(),
            self.0.page.into_into_dart().into_dart(),
            self.0.kind.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ExtractedUri> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ExtractedUri>> for crate::ExtractedUri {
    fn into_into_dart(self) -> FrbWrapper<crate::ExtractedUri> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ExtractionConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.use_cache.into_into_dart().into_dart(),
            self.0.enable_quality_processing.into_into_dart().into_dart(),
            self.0.ocr.into_into_dart().into_dart(),
            self.0.force_ocr.into_into_dart().into_dart(),
            self.0.force_ocr_pages.into_into_dart().into_dart(),
            self.0.disable_ocr.into_into_dart().into_dart(),
            self.0.chunking.into_into_dart().into_dart(),
            self.0.content_filter.into_into_dart().into_dart(),
            self.0.images.into_into_dart().into_dart(),
            self.0.pdf_options.into_into_dart().into_dart(),
            self.0.token_reduction.into_into_dart().into_dart(),
            self.0.language_detection.into_into_dart().into_dart(),
            self.0.pages.into_into_dart().into_dart(),
            self.0.keywords.into_into_dart().into_dart(),
            self.0.postprocessor.into_into_dart().into_dart(),
            self.0.html_options.into_into_dart().into_dart(),
            self.0.html_output.into_into_dart().into_dart(),
            self.0.extraction_timeout_secs.into_into_dart().into_dart(),
            self.0.max_concurrent_extractions.into_into_dart().into_dart(),
            self.0.result_format.into_into_dart().into_dart(),
            self.0.security_limits.into_into_dart().into_dart(),
            self.0.max_embedded_file_bytes.into_into_dart().into_dart(),
            self.0.output_format.into_into_dart().into_dart(),
            self.0.layout.into_into_dart().into_dart(),
            self.0.use_layout_for_markdown.into_into_dart().into_dart(),
            self.0.include_document_structure.into_into_dart().into_dart(),
            self.0.acceleration.into_into_dart().into_dart(),
            self.0.cache_namespace.into_into_dart().into_dart(),
            self.0.cache_ttl_secs.into_into_dart().into_dart(),
            self.0.email.into_into_dart().into_dart(),
            self.0.concurrency.into_into_dart().into_dart(),
            self.0.max_archive_depth.into_into_dart().into_dart(),
            self.0.tree_sitter.into_into_dart().into_dart(),
            self.0.structured_extraction.into_into_dart().into_dart(),
            self.0.cancel_token.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ExtractionConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ExtractionConfig>> for crate::ExtractionConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::ExtractionConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ExtractionDiff> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.content_diff.into_into_dart().into_dart(),
            self.0.tables_added.into_into_dart().into_dart(),
            self.0.tables_removed.into_into_dart().into_dart(),
            self.0.tables_changed.into_into_dart().into_dart(),
            self.0.metadata_changed.into_into_dart().into_dart(),
            self.0.embedded_changes.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ExtractionDiff> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ExtractionDiff>> for crate::ExtractionDiff {
    fn into_into_dart(self) -> FrbWrapper<crate::ExtractionDiff> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ExtractionMethod> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::ExtractionMethod::Native => 0.into_dart(),
            crate::ExtractionMethod::Ocr => 1.into_dart(),
            crate::ExtractionMethod::Mixed => 2.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ExtractionMethod> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ExtractionMethod>> for crate::ExtractionMethod {
    fn into_into_dart(self) -> FrbWrapper<crate::ExtractionMethod> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ExtractionResult> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.content.into_into_dart().into_dart(),
            self.0.mime_type.into_into_dart().into_dart(),
            self.0.metadata.into_into_dart().into_dart(),
            self.0.extraction_method.into_into_dart().into_dart(),
            self.0.tables.into_into_dart().into_dart(),
            self.0.detected_languages.into_into_dart().into_dart(),
            self.0.chunks.into_into_dart().into_dart(),
            self.0.images.into_into_dart().into_dart(),
            self.0.pages.into_into_dart().into_dart(),
            self.0.elements.into_into_dart().into_dart(),
            self.0.djot_content.into_into_dart().into_dart(),
            self.0.ocr_elements.into_into_dart().into_dart(),
            self.0.document.into_into_dart().into_dart(),
            self.0.extracted_keywords.into_into_dart().into_dart(),
            self.0.quality_score.into_into_dart().into_dart(),
            self.0.processing_warnings.into_into_dart().into_dart(),
            self.0.annotations.into_into_dart().into_dart(),
            self.0.children.into_into_dart().into_dart(),
            self.0.uris.into_into_dart().into_dart(),
            self.0.revisions.into_into_dart().into_dart(),
            self.0.structured_output.into_into_dart().into_dart(),
            self.0.code_intelligence.into_into_dart().into_dart(),
            self.0.llm_usage.into_into_dart().into_dart(),
            self.0.formatted_content.into_into_dart().into_dart(),
            self.0.ocr_internal_document.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ExtractionResult> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ExtractionResult>> for crate::ExtractionResult {
    fn into_into_dart(self) -> FrbWrapper<crate::ExtractionResult> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::FictionBookMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.genres.into_into_dart().into_dart(),
            self.0.sequences.into_into_dart().into_dart(),
            self.0.annotation.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::FictionBookMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::FictionBookMetadata>> for crate::FictionBookMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::FictionBookMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::FileExtractionConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.enable_quality_processing.into_into_dart().into_dart(),
            self.0.ocr.into_into_dart().into_dart(),
            self.0.force_ocr.into_into_dart().into_dart(),
            self.0.force_ocr_pages.into_into_dart().into_dart(),
            self.0.disable_ocr.into_into_dart().into_dart(),
            self.0.chunking.into_into_dart().into_dart(),
            self.0.content_filter.into_into_dart().into_dart(),
            self.0.images.into_into_dart().into_dart(),
            self.0.pdf_options.into_into_dart().into_dart(),
            self.0.token_reduction.into_into_dart().into_dart(),
            self.0.language_detection.into_into_dart().into_dart(),
            self.0.pages.into_into_dart().into_dart(),
            self.0.keywords.into_into_dart().into_dart(),
            self.0.postprocessor.into_into_dart().into_dart(),
            self.0.html_options.into_into_dart().into_dart(),
            self.0.result_format.into_into_dart().into_dart(),
            self.0.output_format.into_into_dart().into_dart(),
            self.0.include_document_structure.into_into_dart().into_dart(),
            self.0.layout.into_into_dart().into_dart(),
            self.0.timeout_secs.into_into_dart().into_dart(),
            self.0.tree_sitter.into_into_dart().into_dart(),
            self.0.structured_extraction.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::FileExtractionConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::FileExtractionConfig>> for crate::FileExtractionConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::FileExtractionConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::Footnote> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.label.into_into_dart().into_dart(),
            self.0.content.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::Footnote> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::Footnote>> for crate::Footnote {
    fn into_into_dart(self) -> FrbWrapper<crate::Footnote> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::FormatMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::FormatMetadata::Pdf { field0 } => [0.into_dart(), field0.into_into_dart().into_dart()].into_dart(),
            crate::FormatMetadata::Docx { field0 } => [1.into_dart(), field0.into_into_dart().into_dart()].into_dart(),
            crate::FormatMetadata::Excel { field0 } => [2.into_dart(), field0.into_into_dart().into_dart()].into_dart(),
            crate::FormatMetadata::Email { field0 } => [3.into_dart(), field0.into_into_dart().into_dart()].into_dart(),
            crate::FormatMetadata::Pptx { field0 } => [4.into_dart(), field0.into_into_dart().into_dart()].into_dart(),
            crate::FormatMetadata::Archive { field0 } => {
                [5.into_dart(), field0.into_into_dart().into_dart()].into_dart()
            }
            crate::FormatMetadata::Image { field0 } => [6.into_dart(), field0.into_into_dart().into_dart()].into_dart(),
            crate::FormatMetadata::Xml { field0 } => [7.into_dart(), field0.into_into_dart().into_dart()].into_dart(),
            crate::FormatMetadata::Text { field0 } => [8.into_dart(), field0.into_into_dart().into_dart()].into_dart(),
            crate::FormatMetadata::Html { field0 } => [9.into_dart(), field0.into_into_dart().into_dart()].into_dart(),
            crate::FormatMetadata::Ocr { field0 } => [10.into_dart(), field0.into_into_dart().into_dart()].into_dart(),
            crate::FormatMetadata::Csv { field0 } => [11.into_dart(), field0.into_into_dart().into_dart()].into_dart(),
            crate::FormatMetadata::Bibtex { field0 } => {
                [12.into_dart(), field0.into_into_dart().into_dart()].into_dart()
            }
            crate::FormatMetadata::Citation { field0 } => {
                [13.into_dart(), field0.into_into_dart().into_dart()].into_dart()
            }
            crate::FormatMetadata::FictionBook { field0 } => {
                [14.into_dart(), field0.into_into_dart().into_dart()].into_dart()
            }
            crate::FormatMetadata::Dbf { field0 } => [15.into_dart(), field0.into_into_dart().into_dart()].into_dart(),
            crate::FormatMetadata::Jats { field0 } => [16.into_dart(), field0.into_into_dart().into_dart()].into_dart(),
            crate::FormatMetadata::Epub { field0 } => [17.into_dart(), field0.into_into_dart().into_dart()].into_dart(),
            crate::FormatMetadata::Pst { field0 } => [18.into_dart(), field0.into_into_dart().into_dart()].into_dart(),
            crate::FormatMetadata::Code { field0 } => [19.into_dart(), field0.into_into_dart().into_dart()].into_dart(),
            _ => {
                unimplemented!("");
            }
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::FormatMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::FormatMetadata>> for crate::FormatMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::FormatMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::FormattedBlock> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.block_type.into_into_dart().into_dart(),
            self.0.level.into_into_dart().into_dart(),
            self.0.inline_content.into_into_dart().into_dart(),
            self.0.attributes.into_into_dart().into_dart(),
            self.0.language.into_into_dart().into_dart(),
            self.0.code.into_into_dart().into_dart(),
            self.0.children.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::FormattedBlock> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::FormattedBlock>> for crate::FormattedBlock {
    fn into_into_dart(self) -> FrbWrapper<crate::FormattedBlock> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::GridCell> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.content.into_into_dart().into_dart(),
            self.0.row.into_into_dart().into_dart(),
            self.0.col.into_into_dart().into_dart(),
            self.0.row_span.into_into_dart().into_dart(),
            self.0.col_span.into_into_dart().into_dart(),
            self.0.is_header.into_into_dart().into_dart(),
            self.0.bbox.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::GridCell> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::GridCell>> for crate::GridCell {
    fn into_into_dart(self) -> FrbWrapper<crate::GridCell> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::HeaderMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.level.into_into_dart().into_dart(),
            self.0.text.into_into_dart().into_dart(),
            self.0.id.into_into_dart().into_dart(),
            self.0.depth.into_into_dart().into_dart(),
            self.0.html_offset.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::HeaderMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::HeaderMetadata>> for crate::HeaderMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::HeaderMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::HeadingContext> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [self.0.headings.into_into_dart().into_dart()].into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::HeadingContext> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::HeadingContext>> for crate::HeadingContext {
    fn into_into_dart(self) -> FrbWrapper<crate::HeadingContext> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::HeadingLevel> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.level.into_into_dart().into_dart(),
            self.0.text.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::HeadingLevel> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::HeadingLevel>> for crate::HeadingLevel {
    fn into_into_dart(self) -> FrbWrapper<crate::HeadingLevel> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::HierarchicalBlock> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.text.into_into_dart().into_dart(),
            self.0.font_size.into_into_dart().into_dart(),
            self.0.level.into_into_dart().into_dart(),
            self.0.bbox.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::HierarchicalBlock> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::HierarchicalBlock>> for crate::HierarchicalBlock {
    fn into_into_dart(self) -> FrbWrapper<crate::HierarchicalBlock> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::HierarchyConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.enabled.into_into_dart().into_dart(),
            self.0.k_clusters.into_into_dart().into_dart(),
            self.0.include_bbox.into_into_dart().into_dart(),
            self.0.ocr_coverage_threshold.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::HierarchyConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::HierarchyConfig>> for crate::HierarchyConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::HierarchyConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::HtmlMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.title.into_into_dart().into_dart(),
            self.0.description.into_into_dart().into_dart(),
            self.0.keywords.into_into_dart().into_dart(),
            self.0.author.into_into_dart().into_dart(),
            self.0.canonical_url.into_into_dart().into_dart(),
            self.0.base_href.into_into_dart().into_dart(),
            self.0.language.into_into_dart().into_dart(),
            self.0.text_direction.into_into_dart().into_dart(),
            self.0.open_graph.into_into_dart().into_dart(),
            self.0.twitter_card.into_into_dart().into_dart(),
            self.0.meta_tags.into_into_dart().into_dart(),
            self.0.headers.into_into_dart().into_dart(),
            self.0.links.into_into_dart().into_dart(),
            self.0.images.into_into_dart().into_dart(),
            self.0.structured_data.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::HtmlMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::HtmlMetadata>> for crate::HtmlMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::HtmlMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::HtmlOutputConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.css.into_into_dart().into_dart(),
            self.0.css_file.into_into_dart().into_dart(),
            self.0.theme.into_into_dart().into_dart(),
            self.0.class_prefix.into_into_dart().into_dart(),
            self.0.embed_css.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::HtmlOutputConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::HtmlOutputConfig>> for crate::HtmlOutputConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::HtmlOutputConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::HtmlTheme> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::HtmlTheme::Default => 0.into_dart(),
            crate::HtmlTheme::GitHub => 1.into_dart(),
            crate::HtmlTheme::Dark => 2.into_dart(),
            crate::HtmlTheme::Light => 3.into_dart(),
            crate::HtmlTheme::Unstyled => 4.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::HtmlTheme> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::HtmlTheme>> for crate::HtmlTheme {
    fn into_into_dart(self) -> FrbWrapper<crate::HtmlTheme> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ImageExtractionConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.extract_images.into_into_dart().into_dart(),
            self.0.target_dpi.into_into_dart().into_dart(),
            self.0.max_image_dimension.into_into_dart().into_dart(),
            self.0.inject_placeholders.into_into_dart().into_dart(),
            self.0.auto_adjust_dpi.into_into_dart().into_dart(),
            self.0.min_dpi.into_into_dart().into_dart(),
            self.0.max_dpi.into_into_dart().into_dart(),
            self.0.max_images_per_page.into_into_dart().into_dart(),
            self.0.classify.into_into_dart().into_dart(),
            self.0.include_page_rasters.into_into_dart().into_dart(),
            self.0.run_ocr_on_images.into_into_dart().into_dart(),
            self.0.ocr_text_only.into_into_dart().into_dart(),
            self.0.append_ocr_text.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ImageExtractionConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ImageExtractionConfig>> for crate::ImageExtractionConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::ImageExtractionConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ImageKind> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::ImageKind::Photograph => 0.into_dart(),
            crate::ImageKind::Diagram => 1.into_dart(),
            crate::ImageKind::Chart => 2.into_dart(),
            crate::ImageKind::Drawing => 3.into_dart(),
            crate::ImageKind::TextBlock => 4.into_dart(),
            crate::ImageKind::Decoration => 5.into_dart(),
            crate::ImageKind::Logo => 6.into_dart(),
            crate::ImageKind::Icon => 7.into_dart(),
            crate::ImageKind::TileFragment => 8.into_dart(),
            crate::ImageKind::Mask => 9.into_dart(),
            crate::ImageKind::PageRaster => 10.into_dart(),
            crate::ImageKind::Unknown => 11.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ImageKind> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ImageKind>> for crate::ImageKind {
    fn into_into_dart(self) -> FrbWrapper<crate::ImageKind> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ImageMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.width.into_into_dart().into_dart(),
            self.0.height.into_into_dart().into_dart(),
            self.0.format.into_into_dart().into_dart(),
            self.0.exif.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ImageMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ImageMetadata>> for crate::ImageMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::ImageMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ImageMetadataType> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.src.into_into_dart().into_dart(),
            self.0.alt.into_into_dart().into_dart(),
            self.0.title.into_into_dart().into_dart(),
            self.0.dimensions.into_into_dart().into_dart(),
            self.0.image_type.into_into_dart().into_dart(),
            self.0.attributes.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ImageMetadataType> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ImageMetadataType>> for crate::ImageMetadataType {
    fn into_into_dart(self) -> FrbWrapper<crate::ImageMetadataType> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ImagePreprocessingConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.target_dpi.into_into_dart().into_dart(),
            self.0.auto_rotate.into_into_dart().into_dart(),
            self.0.deskew.into_into_dart().into_dart(),
            self.0.denoise.into_into_dart().into_dart(),
            self.0.contrast_enhance.into_into_dart().into_dart(),
            self.0.binarization_method.into_into_dart().into_dart(),
            self.0.invert_colors.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ImagePreprocessingConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ImagePreprocessingConfig>>
    for crate::ImagePreprocessingConfig
{
    fn into_into_dart(self) -> FrbWrapper<crate::ImagePreprocessingConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ImagePreprocessingMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.original_dimensions.into_into_dart().into_dart(),
            self.0.original_dpi.into_into_dart().into_dart(),
            self.0.target_dpi.into_into_dart().into_dart(),
            self.0.scale_factor.into_into_dart().into_dart(),
            self.0.auto_adjusted.into_into_dart().into_dart(),
            self.0.final_dpi.into_into_dart().into_dart(),
            self.0.new_dimensions.into_into_dart().into_dart(),
            self.0.resample_method.into_into_dart().into_dart(),
            self.0.dimension_clamped.into_into_dart().into_dart(),
            self.0.calculated_dpi.into_into_dart().into_dart(),
            self.0.skipped_resize.into_into_dart().into_dart(),
            self.0.resize_error.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ImagePreprocessingMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ImagePreprocessingMetadata>>
    for crate::ImagePreprocessingMetadata
{
    fn into_into_dart(self) -> FrbWrapper<crate::ImagePreprocessingMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ImageType> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::ImageType::DataUri => 0.into_dart(),
            crate::ImageType::InlineSvg => 1.into_dart(),
            crate::ImageType::External => 2.into_dart(),
            crate::ImageType::Relative => 3.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ImageType> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ImageType>> for crate::ImageType {
    fn into_into_dart(self) -> FrbWrapper<crate::ImageType> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::InlineElement> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.element_type.into_into_dart().into_dart(),
            self.0.content.into_into_dart().into_dart(),
            self.0.attributes.into_into_dart().into_dart(),
            self.0.metadata.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::InlineElement> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::InlineElement>> for crate::InlineElement {
    fn into_into_dart(self) -> FrbWrapper<crate::InlineElement> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::InlineType> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::InlineType::Text => 0.into_dart(),
            crate::InlineType::Strong => 1.into_dart(),
            crate::InlineType::Emphasis => 2.into_dart(),
            crate::InlineType::Highlight => 3.into_dart(),
            crate::InlineType::Subscript => 4.into_dart(),
            crate::InlineType::Superscript => 5.into_dart(),
            crate::InlineType::Insert => 6.into_dart(),
            crate::InlineType::Delete => 7.into_dart(),
            crate::InlineType::Code => 8.into_dart(),
            crate::InlineType::Link => 9.into_dart(),
            crate::InlineType::Image => 10.into_dart(),
            crate::InlineType::Span => 11.into_dart(),
            crate::InlineType::Math => 12.into_dart(),
            crate::InlineType::RawInline => 13.into_dart(),
            crate::InlineType::FootnoteRef => 14.into_dart(),
            crate::InlineType::Symbol => 15.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::InlineType> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::InlineType>> for crate::InlineType {
    fn into_into_dart(self) -> FrbWrapper<crate::InlineType> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for crate::InternalDocumentBridge {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [self.json.into_into_dart().into_dart()].into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::InternalDocumentBridge {}
impl flutter_rust_bridge::IntoIntoDart<crate::InternalDocumentBridge> for crate::InternalDocumentBridge {
    fn into_into_dart(self) -> crate::InternalDocumentBridge {
        self
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::JatsMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.copyright.into_into_dart().into_dart(),
            self.0.license.into_into_dart().into_dart(),
            self.0.history_dates.into_into_dart().into_dart(),
            self.0.contributor_roles.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::JatsMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::JatsMetadata>> for crate::JatsMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::JatsMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::Keyword> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.text.into_into_dart().into_dart(),
            self.0.score.into_into_dart().into_dart(),
            self.0.algorithm.into_into_dart().into_dart(),
            self.0.positions.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::Keyword> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::Keyword>> for crate::Keyword {
    fn into_into_dart(self) -> FrbWrapper<crate::Keyword> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::KeywordAlgorithm> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::KeywordAlgorithm::Yake => 0.into_dart(),
            crate::KeywordAlgorithm::Rake => 1.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::KeywordAlgorithm> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::KeywordAlgorithm>> for crate::KeywordAlgorithm {
    fn into_into_dart(self) -> FrbWrapper<crate::KeywordAlgorithm> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::KeywordConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.algorithm.into_into_dart().into_dart(),
            self.0.max_keywords.into_into_dart().into_dart(),
            self.0.min_score.into_into_dart().into_dart(),
            self.0.ngram_range.into_into_dart().into_dart(),
            self.0.language.into_into_dart().into_dart(),
            self.0.yake_params.into_into_dart().into_dart(),
            self.0.rake_params.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::KeywordConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::KeywordConfig>> for crate::KeywordConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::KeywordConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::LanguageDetectionConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.enabled.into_into_dart().into_dart(),
            self.0.min_confidence.into_into_dart().into_dart(),
            self.0.detect_multiple.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::LanguageDetectionConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::LanguageDetectionConfig>> for crate::LanguageDetectionConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::LanguageDetectionConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::LayoutClass> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::LayoutClass::Caption => 0.into_dart(),
            crate::LayoutClass::Footnote => 1.into_dart(),
            crate::LayoutClass::Formula => 2.into_dart(),
            crate::LayoutClass::ListItem => 3.into_dart(),
            crate::LayoutClass::PageFooter => 4.into_dart(),
            crate::LayoutClass::PageHeader => 5.into_dart(),
            crate::LayoutClass::Picture => 6.into_dart(),
            crate::LayoutClass::SectionHeader => 7.into_dart(),
            crate::LayoutClass::Table => 8.into_dart(),
            crate::LayoutClass::Text => 9.into_dart(),
            crate::LayoutClass::Title => 10.into_dart(),
            crate::LayoutClass::DocumentIndex => 11.into_dart(),
            crate::LayoutClass::Code => 12.into_dart(),
            crate::LayoutClass::CheckboxSelected => 13.into_dart(),
            crate::LayoutClass::CheckboxUnselected => 14.into_dart(),
            crate::LayoutClass::Form => 15.into_dart(),
            crate::LayoutClass::KeyValueRegion => 16.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::LayoutClass> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::LayoutClass>> for crate::LayoutClass {
    fn into_into_dart(self) -> FrbWrapper<crate::LayoutClass> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::LayoutDetection> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.class_name.into_into_dart().into_dart(),
            self.0.confidence.into_into_dart().into_dart(),
            self.0.bbox.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::LayoutDetection> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::LayoutDetection>> for crate::LayoutDetection {
    fn into_into_dart(self) -> FrbWrapper<crate::LayoutDetection> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::LayoutDetectionConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.confidence_threshold.into_into_dart().into_dart(),
            self.0.apply_heuristics.into_into_dart().into_dart(),
            self.0.table_model.into_into_dart().into_dart(),
            self.0.acceleration.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::LayoutDetectionConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::LayoutDetectionConfig>> for crate::LayoutDetectionConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::LayoutDetectionConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::LayoutRegion> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.class_name.into_into_dart().into_dart(),
            self.0.confidence.into_into_dart().into_dart(),
            self.0.bounding_box.into_into_dart().into_dart(),
            self.0.area_fraction.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::LayoutRegion> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::LayoutRegion>> for crate::LayoutRegion {
    fn into_into_dart(self) -> FrbWrapper<crate::LayoutRegion> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::LinkMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.href.into_into_dart().into_dart(),
            self.0.text.into_into_dart().into_dart(),
            self.0.title.into_into_dart().into_dart(),
            self.0.link_type.into_into_dart().into_dart(),
            self.0.rel.into_into_dart().into_dart(),
            self.0.attributes.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::LinkMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::LinkMetadata>> for crate::LinkMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::LinkMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::LinkType> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::LinkType::Anchor => 0.into_dart(),
            crate::LinkType::Internal => 1.into_dart(),
            crate::LinkType::External => 2.into_dart(),
            crate::LinkType::Email => 3.into_dart(),
            crate::LinkType::Phone => 4.into_dart(),
            crate::LinkType::Other => 5.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::LinkType> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::LinkType>> for crate::LinkType {
    fn into_into_dart(self) -> FrbWrapper<crate::LinkType> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::LlmConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.model.into_into_dart().into_dart(),
            self.0.api_key.into_into_dart().into_dart(),
            self.0.base_url.into_into_dart().into_dart(),
            self.0.timeout_secs.into_into_dart().into_dart(),
            self.0.max_retries.into_into_dart().into_dart(),
            self.0.temperature.into_into_dart().into_dart(),
            self.0.max_tokens.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::LlmConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::LlmConfig>> for crate::LlmConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::LlmConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::LlmUsage> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.model.into_into_dart().into_dart(),
            self.0.source.into_into_dart().into_dart(),
            self.0.input_tokens.into_into_dart().into_dart(),
            self.0.output_tokens.into_into_dart().into_dart(),
            self.0.total_tokens.into_into_dart().into_dart(),
            self.0.estimated_cost.into_into_dart().into_dart(),
            self.0.finish_reason.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::LlmUsage> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::LlmUsage>> for crate::LlmUsage {
    fn into_into_dart(self) -> FrbWrapper<crate::LlmUsage> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::Metadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.title.into_into_dart().into_dart(),
            self.0.subject.into_into_dart().into_dart(),
            self.0.authors.into_into_dart().into_dart(),
            self.0.keywords.into_into_dart().into_dart(),
            self.0.language.into_into_dart().into_dart(),
            self.0.created_at.into_into_dart().into_dart(),
            self.0.modified_at.into_into_dart().into_dart(),
            self.0.created_by.into_into_dart().into_dart(),
            self.0.modified_by.into_into_dart().into_dart(),
            self.0.pages.into_into_dart().into_dart(),
            self.0.format.into_into_dart().into_dart(),
            self.0.image_preprocessing.into_into_dart().into_dart(),
            self.0.json_schema.into_into_dart().into_dart(),
            self.0.error.into_into_dart().into_dart(),
            self.0.extraction_duration_ms.into_into_dart().into_dart(),
            self.0.category.into_into_dart().into_dart(),
            self.0.tags.into_into_dart().into_dart(),
            self.0.document_version.into_into_dart().into_dart(),
            self.0.abstract_text.into_into_dart().into_dart(),
            self.0.output_format.into_into_dart().into_dart(),
            self.0.ocr_used.into_into_dart().into_dart(),
            self.0.additional.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::Metadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::Metadata>> for crate::Metadata {
    fn into_into_dart(self) -> FrbWrapper<crate::Metadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ModelPaths> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.det_model.into_into_dart().into_dart(),
            self.0.cls_model.into_into_dart().into_dart(),
            self.0.rec_model.into_into_dart().into_dart(),
            self.0.dict_file.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ModelPaths> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ModelPaths>> for crate::ModelPaths {
    fn into_into_dart(self) -> FrbWrapper<crate::ModelPaths> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::NodeContent> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::NodeContent::Title { text } => [0.into_dart(), text.into_into_dart().into_dart()].into_dart(),
            crate::NodeContent::Heading { level, text } => [
                1.into_dart(),
                level.into_into_dart().into_dart(),
                text.into_into_dart().into_dart(),
            ]
            .into_dart(),
            crate::NodeContent::Paragraph { text } => [2.into_dart(), text.into_into_dart().into_dart()].into_dart(),
            crate::NodeContent::List { ordered } => [3.into_dart(), ordered.into_into_dart().into_dart()].into_dart(),
            crate::NodeContent::ListItem { text } => [4.into_dart(), text.into_into_dart().into_dart()].into_dart(),
            crate::NodeContent::Table { grid } => [5.into_dart(), grid.into_into_dart().into_dart()].into_dart(),
            crate::NodeContent::Image {
                description,
                image_index,
                src,
            } => [
                6.into_dart(),
                description.into_into_dart().into_dart(),
                image_index.into_into_dart().into_dart(),
                src.into_into_dart().into_dart(),
            ]
            .into_dart(),
            crate::NodeContent::Code { text, language } => [
                7.into_dart(),
                text.into_into_dart().into_dart(),
                language.into_into_dart().into_dart(),
            ]
            .into_dart(),
            crate::NodeContent::Quote => [8.into_dart()].into_dart(),
            crate::NodeContent::Formula { text } => [9.into_dart(), text.into_into_dart().into_dart()].into_dart(),
            crate::NodeContent::Footnote { text } => [10.into_dart(), text.into_into_dart().into_dart()].into_dart(),
            crate::NodeContent::Group {
                label,
                heading_level,
                heading_text,
            } => [
                11.into_dart(),
                label.into_into_dart().into_dart(),
                heading_level.into_into_dart().into_dart(),
                heading_text.into_into_dart().into_dart(),
            ]
            .into_dart(),
            crate::NodeContent::PageBreak => [12.into_dart()].into_dart(),
            crate::NodeContent::Slide { number, title } => [
                13.into_dart(),
                number.into_into_dart().into_dart(),
                title.into_into_dart().into_dart(),
            ]
            .into_dart(),
            crate::NodeContent::DefinitionList => [14.into_dart()].into_dart(),
            crate::NodeContent::DefinitionItem { term, definition } => [
                15.into_dart(),
                term.into_into_dart().into_dart(),
                definition.into_into_dart().into_dart(),
            ]
            .into_dart(),
            crate::NodeContent::Citation { key, text } => [
                16.into_dart(),
                key.into_into_dart().into_dart(),
                text.into_into_dart().into_dart(),
            ]
            .into_dart(),
            crate::NodeContent::Admonition { kind, title } => [
                17.into_dart(),
                kind.into_into_dart().into_dart(),
                title.into_into_dart().into_dart(),
            ]
            .into_dart(),
            crate::NodeContent::RawBlock { format, content } => [
                18.into_dart(),
                format.into_into_dart().into_dart(),
                content.into_into_dart().into_dart(),
            ]
            .into_dart(),
            crate::NodeContent::MetadataBlock { entries } => {
                [19.into_dart(), entries.into_into_dart().into_dart()].into_dart()
            }
            _ => {
                unimplemented!("");
            }
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::NodeContent> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::NodeContent>> for crate::NodeContent {
    fn into_into_dart(self) -> FrbWrapper<crate::NodeContent> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::OcrBackendType> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::OcrBackendType::Tesseract => 0.into_dart(),
            crate::OcrBackendType::EasyOCR => 1.into_dart(),
            crate::OcrBackendType::PaddleOCR => 2.into_dart(),
            crate::OcrBackendType::Custom => 3.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::OcrBackendType> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::OcrBackendType>> for crate::OcrBackendType {
    fn into_into_dart(self) -> FrbWrapper<crate::OcrBackendType> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::OcrBoundingGeometry> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::OcrBoundingGeometry::Rectangle {
                left,
                top,
                width,
                height,
            } => [
                0.into_dart(),
                left.into_into_dart().into_dart(),
                top.into_into_dart().into_dart(),
                width.into_into_dart().into_dart(),
                height.into_into_dart().into_dart(),
            ]
            .into_dart(),
            crate::OcrBoundingGeometry::Quadrilateral { points } => {
                [1.into_dart(), points.into_into_dart().into_dart()].into_dart()
            }
            _ => {
                unimplemented!("");
            }
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::OcrBoundingGeometry> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::OcrBoundingGeometry>> for crate::OcrBoundingGeometry {
    fn into_into_dart(self) -> FrbWrapper<crate::OcrBoundingGeometry> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::OcrConfidence> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.detection.into_into_dart().into_dart(),
            self.0.recognition.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::OcrConfidence> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::OcrConfidence>> for crate::OcrConfidence {
    fn into_into_dart(self) -> FrbWrapper<crate::OcrConfidence> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::OcrConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.enabled.into_into_dart().into_dart(),
            self.0.backend.into_into_dart().into_dart(),
            self.0.language.into_into_dart().into_dart(),
            self.0.tesseract_config.into_into_dart().into_dart(),
            self.0.output_format.into_into_dart().into_dart(),
            self.0.paddle_ocr_config.into_into_dart().into_dart(),
            self.0.backend_options.into_into_dart().into_dart(),
            self.0.element_config.into_into_dart().into_dart(),
            self.0.quality_thresholds.into_into_dart().into_dart(),
            self.0.pipeline.into_into_dart().into_dart(),
            self.0.auto_rotate.into_into_dart().into_dart(),
            self.0.vlm_config.into_into_dart().into_dart(),
            self.0.vlm_prompt.into_into_dart().into_dart(),
            self.0.acceleration.into_into_dart().into_dart(),
            self.0.tessdata_bytes.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::OcrConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::OcrConfig>> for crate::OcrConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::OcrConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::OcrElement> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.text.into_into_dart().into_dart(),
            self.0.geometry.into_into_dart().into_dart(),
            self.0.confidence.into_into_dart().into_dart(),
            self.0.level.into_into_dart().into_dart(),
            self.0.rotation.into_into_dart().into_dart(),
            self.0.page_number.into_into_dart().into_dart(),
            self.0.parent_id.into_into_dart().into_dart(),
            self.0.backend_metadata.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::OcrElement> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::OcrElement>> for crate::OcrElement {
    fn into_into_dart(self) -> FrbWrapper<crate::OcrElement> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::OcrElementConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.include_elements.into_into_dart().into_dart(),
            self.0.min_level.into_into_dart().into_dart(),
            self.0.min_confidence.into_into_dart().into_dart(),
            self.0.build_hierarchy.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::OcrElementConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::OcrElementConfig>> for crate::OcrElementConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::OcrElementConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::OcrElementLevel> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::OcrElementLevel::Word => 0.into_dart(),
            crate::OcrElementLevel::Line => 1.into_dart(),
            crate::OcrElementLevel::Block => 2.into_dart(),
            crate::OcrElementLevel::Page => 3.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::OcrElementLevel> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::OcrElementLevel>> for crate::OcrElementLevel {
    fn into_into_dart(self) -> FrbWrapper<crate::OcrElementLevel> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::OcrExtractionResult> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.content.into_into_dart().into_dart(),
            self.0.mime_type.into_into_dart().into_dart(),
            self.0.metadata.into_into_dart().into_dart(),
            self.0.tables.into_into_dart().into_dart(),
            self.0.ocr_elements.into_into_dart().into_dart(),
            self.0.internal_document.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::OcrExtractionResult> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::OcrExtractionResult>> for crate::OcrExtractionResult {
    fn into_into_dart(self) -> FrbWrapper<crate::OcrExtractionResult> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::OcrMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.language.into_into_dart().into_dart(),
            self.0.psm.into_into_dart().into_dart(),
            self.0.output_format.into_into_dart().into_dart(),
            self.0.table_count.into_into_dart().into_dart(),
            self.0.table_rows.into_into_dart().into_dart(),
            self.0.table_cols.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::OcrMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::OcrMetadata>> for crate::OcrMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::OcrMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::OcrPipelineConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.stages.into_into_dart().into_dart(),
            self.0.quality_thresholds.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::OcrPipelineConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::OcrPipelineConfig>> for crate::OcrPipelineConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::OcrPipelineConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::OcrPipelineStage> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.backend.into_into_dart().into_dart(),
            self.0.priority.into_into_dart().into_dart(),
            self.0.language.into_into_dart().into_dart(),
            self.0.tesseract_config.into_into_dart().into_dart(),
            self.0.paddle_ocr_config.into_into_dart().into_dart(),
            self.0.vlm_config.into_into_dart().into_dart(),
            self.0.backend_options.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::OcrPipelineStage> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::OcrPipelineStage>> for crate::OcrPipelineStage {
    fn into_into_dart(self) -> FrbWrapper<crate::OcrPipelineStage> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::OcrQualityThresholds> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.min_total_non_whitespace.into_into_dart().into_dart(),
            self.0.min_non_whitespace_per_page.into_into_dart().into_dart(),
            self.0.min_meaningful_word_len.into_into_dart().into_dart(),
            self.0.min_meaningful_words.into_into_dart().into_dart(),
            self.0.min_alnum_ratio.into_into_dart().into_dart(),
            self.0.min_garbage_chars.into_into_dart().into_dart(),
            self.0.max_fragmented_word_ratio.into_into_dart().into_dart(),
            self.0.critical_fragmented_word_ratio.into_into_dart().into_dart(),
            self.0.min_avg_word_length.into_into_dart().into_dart(),
            self.0.min_words_for_avg_length_check.into_into_dart().into_dart(),
            self.0.min_consecutive_repeat_ratio.into_into_dart().into_dart(),
            self.0.min_words_for_repeat_check.into_into_dart().into_dart(),
            self.0.substantive_min_chars.into_into_dart().into_dart(),
            self.0.non_text_min_chars.into_into_dart().into_dart(),
            self.0.alnum_ws_ratio_threshold.into_into_dart().into_dart(),
            self.0.pipeline_min_quality.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::OcrQualityThresholds> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::OcrQualityThresholds>> for crate::OcrQualityThresholds {
    fn into_into_dart(self) -> FrbWrapper<crate::OcrQualityThresholds> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::OcrRotation> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.angle_degrees.into_into_dart().into_dart(),
            self.0.confidence.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::OcrRotation> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::OcrRotation>> for crate::OcrRotation {
    fn into_into_dart(self) -> FrbWrapper<crate::OcrRotation> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::OcrTable> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.cells.into_into_dart().into_dart(),
            self.0.markdown.into_into_dart().into_dart(),
            self.0.page_number.into_into_dart().into_dart(),
            self.0.bounding_box.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::OcrTable> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::OcrTable>> for crate::OcrTable {
    fn into_into_dart(self) -> FrbWrapper<crate::OcrTable> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::OcrTableBoundingBox> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.left.into_into_dart().into_dart(),
            self.0.top.into_into_dart().into_dart(),
            self.0.right.into_into_dart().into_dart(),
            self.0.bottom.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::OcrTableBoundingBox> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::OcrTableBoundingBox>> for crate::OcrTableBoundingBox {
    fn into_into_dart(self) -> FrbWrapper<crate::OcrTableBoundingBox> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::OrientationResult> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.degrees.into_into_dart().into_dart(),
            self.0.confidence.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::OrientationResult> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::OrientationResult>> for crate::OrientationResult {
    fn into_into_dart(self) -> FrbWrapper<crate::OrientationResult> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::OutputFormat> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::OutputFormat::Plain => [0.into_dart()].into_dart(),
            crate::OutputFormat::Markdown => [1.into_dart()].into_dart(),
            crate::OutputFormat::Djot => [2.into_dart()].into_dart(),
            crate::OutputFormat::Html => [3.into_dart()].into_dart(),
            crate::OutputFormat::Json => [4.into_dart()].into_dart(),
            crate::OutputFormat::Structured => [5.into_dart()].into_dart(),
            crate::OutputFormat::Custom { field0 } => [6.into_dart(), field0.into_into_dart().into_dart()].into_dart(),
            _ => {
                unimplemented!("");
            }
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::OutputFormat> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::OutputFormat>> for crate::OutputFormat {
    fn into_into_dart(self) -> FrbWrapper<crate::OutputFormat> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::PaddleOcrConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.language.into_into_dart().into_dart(),
            self.0.cache_dir.into_into_dart().into_dart(),
            self.0.use_angle_cls.into_into_dart().into_dart(),
            self.0.enable_table_detection.into_into_dart().into_dart(),
            self.0.det_db_thresh.into_into_dart().into_dart(),
            self.0.det_db_box_thresh.into_into_dart().into_dart(),
            self.0.det_db_unclip_ratio.into_into_dart().into_dart(),
            self.0.det_limit_side_len.into_into_dart().into_dart(),
            self.0.rec_batch_num.into_into_dart().into_dart(),
            self.0.padding.into_into_dart().into_dart(),
            self.0.drop_score.into_into_dart().into_dart(),
            self.0.model_tier.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::PaddleOcrConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::PaddleOcrConfig>> for crate::PaddleOcrConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::PaddleOcrConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::PageBoundary> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.byte_start.into_into_dart().into_dart(),
            self.0.byte_end.into_into_dart().into_dart(),
            self.0.page_number.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::PageBoundary> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::PageBoundary>> for crate::PageBoundary {
    fn into_into_dart(self) -> FrbWrapper<crate::PageBoundary> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::PageConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.extract_pages.into_into_dart().into_dart(),
            self.0.insert_page_markers.into_into_dart().into_dart(),
            self.0.marker_format.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::PageConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::PageConfig>> for crate::PageConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::PageConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::PageContent> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.page_number.into_into_dart().into_dart(),
            self.0.content.into_into_dart().into_dart(),
            self.0.tables.into_into_dart().into_dart(),
            self.0.image_indices.into_into_dart().into_dart(),
            self.0.hierarchy.into_into_dart().into_dart(),
            self.0.is_blank.into_into_dart().into_dart(),
            self.0.layout_regions.into_into_dart().into_dart(),
            self.0.speaker_notes.into_into_dart().into_dart(),
            self.0.section_name.into_into_dart().into_dart(),
            self.0.sheet_name.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::PageContent> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::PageContent>> for crate::PageContent {
    fn into_into_dart(self) -> FrbWrapper<crate::PageContent> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::PageHierarchy> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.block_count.into_into_dart().into_dart(),
            self.0.blocks.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::PageHierarchy> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::PageHierarchy>> for crate::PageHierarchy {
    fn into_into_dart(self) -> FrbWrapper<crate::PageHierarchy> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::PageInfo> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.number.into_into_dart().into_dart(),
            self.0.title.into_into_dart().into_dart(),
            self.0.dimensions.into_into_dart().into_dart(),
            self.0.image_count.into_into_dart().into_dart(),
            self.0.table_count.into_into_dart().into_dart(),
            self.0.hidden.into_into_dart().into_dart(),
            self.0.is_blank.into_into_dart().into_dart(),
            self.0.has_vector_graphics.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::PageInfo> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::PageInfo>> for crate::PageInfo {
    fn into_into_dart(self) -> FrbWrapper<crate::PageInfo> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::PageStructure> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.total_count.into_into_dart().into_dart(),
            self.0.unit_type.into_into_dart().into_dart(),
            self.0.boundaries.into_into_dart().into_dart(),
            self.0.pages.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::PageStructure> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::PageStructure>> for crate::PageStructure {
    fn into_into_dart(self) -> FrbWrapper<crate::PageStructure> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::PageUnitType> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::PageUnitType::Page => 0.into_dart(),
            crate::PageUnitType::Slide => 1.into_dart(),
            crate::PageUnitType::Sheet => 2.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::PageUnitType> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::PageUnitType>> for crate::PageUnitType {
    fn into_into_dart(self) -> FrbWrapper<crate::PageUnitType> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::PdfAnnotation> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.annotation_type.into_into_dart().into_dart(),
            self.0.content.into_into_dart().into_dart(),
            self.0.page_number.into_into_dart().into_dart(),
            self.0.bounding_box.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::PdfAnnotation> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::PdfAnnotation>> for crate::PdfAnnotation {
    fn into_into_dart(self) -> FrbWrapper<crate::PdfAnnotation> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::PdfAnnotationType> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::PdfAnnotationType::Text => 0.into_dart(),
            crate::PdfAnnotationType::Highlight => 1.into_dart(),
            crate::PdfAnnotationType::Link => 2.into_dart(),
            crate::PdfAnnotationType::Stamp => 3.into_dart(),
            crate::PdfAnnotationType::Underline => 4.into_dart(),
            crate::PdfAnnotationType::StrikeOut => 5.into_dart(),
            crate::PdfAnnotationType::Other => 6.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::PdfAnnotationType> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::PdfAnnotationType>> for crate::PdfAnnotationType {
    fn into_into_dart(self) -> FrbWrapper<crate::PdfAnnotationType> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::PdfConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.extract_images.into_into_dart().into_dart(),
            self.0.extract_tables.into_into_dart().into_dart(),
            self.0.passwords.into_into_dart().into_dart(),
            self.0.extract_metadata.into_into_dart().into_dart(),
            self.0.hierarchy.into_into_dart().into_dart(),
            self.0.extract_annotations.into_into_dart().into_dart(),
            self.0.top_margin_fraction.into_into_dart().into_dart(),
            self.0.bottom_margin_fraction.into_into_dart().into_dart(),
            self.0.allow_single_column_tables.into_into_dart().into_dart(),
            self.0.ocr_inline_images.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::PdfConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::PdfConfig>> for crate::PdfConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::PdfConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::PdfMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.pdf_version.into_into_dart().into_dart(),
            self.0.producer.into_into_dart().into_dart(),
            self.0.is_encrypted.into_into_dart().into_dart(),
            self.0.width.into_into_dart().into_dart(),
            self.0.height.into_into_dart().into_dart(),
            self.0.page_count.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::PdfMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::PdfMetadata>> for crate::PdfMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::PdfMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::PostProcessorConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.enabled.into_into_dart().into_dart(),
            self.0.enabled_processors.into_into_dart().into_dart(),
            self.0.disabled_processors.into_into_dart().into_dart(),
            self.0.enabled_set.into_into_dart().into_dart(),
            self.0.disabled_set.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::PostProcessorConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::PostProcessorConfig>> for crate::PostProcessorConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::PostProcessorConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::PptxAppProperties> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.application.into_into_dart().into_dart(),
            self.0.app_version.into_into_dart().into_dart(),
            self.0.total_time.into_into_dart().into_dart(),
            self.0.company.into_into_dart().into_dart(),
            self.0.doc_security.into_into_dart().into_dart(),
            self.0.scale_crop.into_into_dart().into_dart(),
            self.0.links_up_to_date.into_into_dart().into_dart(),
            self.0.shared_doc.into_into_dart().into_dart(),
            self.0.hyperlinks_changed.into_into_dart().into_dart(),
            self.0.slides.into_into_dart().into_dart(),
            self.0.notes.into_into_dart().into_dart(),
            self.0.hidden_slides.into_into_dart().into_dart(),
            self.0.multimedia_clips.into_into_dart().into_dart(),
            self.0.presentation_format.into_into_dart().into_dart(),
            self.0.slide_titles.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::PptxAppProperties> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::PptxAppProperties>> for crate::PptxAppProperties {
    fn into_into_dart(self) -> FrbWrapper<crate::PptxAppProperties> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::PptxExtractionResult> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.content.into_into_dart().into_dart(),
            self.0.metadata.into_into_dart().into_dart(),
            self.0.slide_count.into_into_dart().into_dart(),
            self.0.image_count.into_into_dart().into_dart(),
            self.0.table_count.into_into_dart().into_dart(),
            self.0.images.into_into_dart().into_dart(),
            self.0.page_structure.into_into_dart().into_dart(),
            self.0.page_contents.into_into_dart().into_dart(),
            self.0.document.into_into_dart().into_dart(),
            self.0.hyperlinks.into_into_dart().into_dart(),
            self.0.office_metadata.into_into_dart().into_dart(),
            self.0.revisions.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::PptxExtractionResult> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::PptxExtractionResult>> for crate::PptxExtractionResult {
    fn into_into_dart(self) -> FrbWrapper<crate::PptxExtractionResult> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::PptxMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.slide_count.into_into_dart().into_dart(),
            self.0.slide_names.into_into_dart().into_dart(),
            self.0.image_count.into_into_dart().into_dart(),
            self.0.table_count.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::PptxMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::PptxMetadata>> for crate::PptxMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::PptxMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ProcessingStage> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::ProcessingStage::Early => 0.into_dart(),
            crate::ProcessingStage::Middle => 1.into_dart(),
            crate::ProcessingStage::Late => 2.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ProcessingStage> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ProcessingStage>> for crate::ProcessingStage {
    fn into_into_dart(self) -> FrbWrapper<crate::ProcessingStage> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ProcessingWarning> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.source.into_into_dart().into_dart(),
            self.0.message.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ProcessingWarning> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ProcessingWarning>> for crate::ProcessingWarning {
    fn into_into_dart(self) -> FrbWrapper<crate::ProcessingWarning> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::PstMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [self.0.message_count.into_into_dart().into_dart()].into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::PstMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::PstMetadata>> for crate::PstMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::PstMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::RakeParams> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.min_word_length.into_into_dart().into_dart(),
            self.0.max_words_per_phrase.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::RakeParams> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::RakeParams>> for crate::RakeParams {
    fn into_into_dart(self) -> FrbWrapper<crate::RakeParams> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::RecognizedTable> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.detection_bbox.into_into_dart().into_dart(),
            self.0.cells.into_into_dart().into_dart(),
            self.0.markdown.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::RecognizedTable> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::RecognizedTable>> for crate::RecognizedTable {
    fn into_into_dart(self) -> FrbWrapper<crate::RecognizedTable> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ReductionLevel> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::ReductionLevel::Off => 0.into_dart(),
            crate::ReductionLevel::Light => 1.into_dart(),
            crate::ReductionLevel::Moderate => 2.into_dart(),
            crate::ReductionLevel::Aggressive => 3.into_dart(),
            crate::ReductionLevel::Maximum => 4.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ReductionLevel> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ReductionLevel>> for crate::ReductionLevel {
    fn into_into_dart(self) -> FrbWrapper<crate::ReductionLevel> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::RelationshipKind> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::RelationshipKind::FootnoteReference => 0.into_dart(),
            crate::RelationshipKind::CitationReference => 1.into_dart(),
            crate::RelationshipKind::InternalLink => 2.into_dart(),
            crate::RelationshipKind::Caption => 3.into_dart(),
            crate::RelationshipKind::Label => 4.into_dart(),
            crate::RelationshipKind::TocEntry => 5.into_dart(),
            crate::RelationshipKind::CrossReference => 6.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::RelationshipKind> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::RelationshipKind>> for crate::RelationshipKind {
    fn into_into_dart(self) -> FrbWrapper<crate::RelationshipKind> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ResultFormat> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::ResultFormat::Unified => 0.into_dart(),
            crate::ResultFormat::ElementBased => 1.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ResultFormat> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ResultFormat>> for crate::ResultFormat {
    fn into_into_dart(self) -> FrbWrapper<crate::ResultFormat> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::RevisionAnchor> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::RevisionAnchor::Paragraph { index } => {
                [0.into_dart(), index.into_into_dart().into_dart()].into_dart()
            }
            crate::RevisionAnchor::TableCell { row, col, table_index } => [
                1.into_dart(),
                row.into_into_dart().into_dart(),
                col.into_into_dart().into_dart(),
                table_index.into_into_dart().into_dart(),
            ]
            .into_dart(),
            crate::RevisionAnchor::Page { index } => [2.into_dart(), index.into_into_dart().into_dart()].into_dart(),
            crate::RevisionAnchor::Slide { index } => [3.into_dart(), index.into_into_dart().into_dart()].into_dart(),
            crate::RevisionAnchor::Sheet { index, name } => [
                4.into_dart(),
                index.into_into_dart().into_dart(),
                name.into_into_dart().into_dart(),
            ]
            .into_dart(),
            _ => {
                unimplemented!("");
            }
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::RevisionAnchor> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::RevisionAnchor>> for crate::RevisionAnchor {
    fn into_into_dart(self) -> FrbWrapper<crate::RevisionAnchor> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::RevisionDelta> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.content.into_into_dart().into_dart(),
            self.0.table_changes.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::RevisionDelta> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::RevisionDelta>> for crate::RevisionDelta {
    fn into_into_dart(self) -> FrbWrapper<crate::RevisionDelta> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::RevisionKind> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::RevisionKind::Insertion => 0.into_dart(),
            crate::RevisionKind::Deletion => 1.into_dart(),
            crate::RevisionKind::FormatChange => 2.into_dart(),
            crate::RevisionKind::Comment => 3.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::RevisionKind> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::RevisionKind>> for crate::RevisionKind {
    fn into_into_dart(self) -> FrbWrapper<crate::RevisionKind> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::SecurityLimits> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.max_archive_size.into_into_dart().into_dart(),
            self.0.max_compression_ratio.into_into_dart().into_dart(),
            self.0.max_files_in_archive.into_into_dart().into_dart(),
            self.0.max_nesting_depth.into_into_dart().into_dart(),
            self.0.max_entity_length.into_into_dart().into_dart(),
            self.0.max_content_size.into_into_dart().into_dart(),
            self.0.max_iterations.into_into_dart().into_dart(),
            self.0.max_xml_depth.into_into_dart().into_dart(),
            self.0.max_table_cells.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::SecurityLimits> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::SecurityLimits>> for crate::SecurityLimits {
    fn into_into_dart(self) -> FrbWrapper<crate::SecurityLimits> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::ServerConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.host.into_into_dart().into_dart(),
            self.0.port.into_into_dart().into_dart(),
            self.0.cors_origins.into_into_dart().into_dart(),
            self.0.max_request_body_bytes.into_into_dart().into_dart(),
            self.0.max_multipart_field_bytes.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::ServerConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::ServerConfig>> for crate::ServerConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::ServerConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::StructuredData> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.data_type.into_into_dart().into_dart(),
            self.0.raw_json.into_into_dart().into_dart(),
            self.0.schema_type.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::StructuredData> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::StructuredData>> for crate::StructuredData {
    fn into_into_dart(self) -> FrbWrapper<crate::StructuredData> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::StructuredDataResult> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.content.into_into_dart().into_dart(),
            self.0.format.into_into_dart().into_dart(),
            self.0.metadata.into_into_dart().into_dart(),
            self.0.text_fields.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::StructuredDataResult> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::StructuredDataResult>> for crate::StructuredDataResult {
    fn into_into_dart(self) -> FrbWrapper<crate::StructuredDataResult> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::StructuredDataType> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::StructuredDataType::JsonLd => 0.into_dart(),
            crate::StructuredDataType::Microdata => 1.into_dart(),
            crate::StructuredDataType::RDFa => 2.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::StructuredDataType> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::StructuredDataType>> for crate::StructuredDataType {
    fn into_into_dart(self) -> FrbWrapper<crate::StructuredDataType> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::StructuredExtractionConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.schema.into_into_dart().into_dart(),
            self.0.schema_name.into_into_dart().into_dart(),
            self.0.schema_description.into_into_dart().into_dart(),
            self.0.strict.into_into_dart().into_dart(),
            self.0.prompt.into_into_dart().into_dart(),
            self.0.llm.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::StructuredExtractionConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::StructuredExtractionConfig>>
    for crate::StructuredExtractionConfig
{
    fn into_into_dart(self) -> FrbWrapper<crate::StructuredExtractionConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::SupportedFormat> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.extension.into_into_dart().into_dart(),
            self.0.mime_type.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::SupportedFormat> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::SupportedFormat>> for crate::SupportedFormat {
    fn into_into_dart(self) -> FrbWrapper<crate::SupportedFormat> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::Table> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.cells.into_into_dart().into_dart(),
            self.0.markdown.into_into_dart().into_dart(),
            self.0.page_number.into_into_dart().into_dart(),
            self.0.bounding_box.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::Table> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::Table>> for crate::Table {
    fn into_into_dart(self) -> FrbWrapper<crate::Table> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::TableCell> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.content.into_into_dart().into_dart(),
            self.0.row_span.into_into_dart().into_dart(),
            self.0.col_span.into_into_dart().into_dart(),
            self.0.is_header.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::TableCell> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::TableCell>> for crate::TableCell {
    fn into_into_dart(self) -> FrbWrapper<crate::TableCell> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::TableDiff> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.from_index.into_into_dart().into_dart(),
            self.0.to_index.into_into_dart().into_dart(),
            self.0.cell_changes.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::TableDiff> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::TableDiff>> for crate::TableDiff {
    fn into_into_dart(self) -> FrbWrapper<crate::TableDiff> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::TableGrid> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.rows.into_into_dart().into_dart(),
            self.0.cols.into_into_dart().into_dart(),
            self.0.cells.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::TableGrid> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::TableGrid>> for crate::TableGrid {
    fn into_into_dart(self) -> FrbWrapper<crate::TableGrid> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::TableModel> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::TableModel::Tatr => 0.into_dart(),
            crate::TableModel::SlanetWired => 1.into_dart(),
            crate::TableModel::SlanetWireless => 2.into_dart(),
            crate::TableModel::SlanetPlus => 3.into_dart(),
            crate::TableModel::SlanetAuto => 4.into_dart(),
            crate::TableModel::Disabled => 5.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::TableModel> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::TableModel>> for crate::TableModel {
    fn into_into_dart(self) -> FrbWrapper<crate::TableModel> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::TesseractConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.language.into_into_dart().into_dart(),
            self.0.psm.into_into_dart().into_dart(),
            self.0.output_format.into_into_dart().into_dart(),
            self.0.oem.into_into_dart().into_dart(),
            self.0.min_confidence.into_into_dart().into_dart(),
            self.0.preprocessing.into_into_dart().into_dart(),
            self.0.enable_table_detection.into_into_dart().into_dart(),
            self.0.table_min_confidence.into_into_dart().into_dart(),
            self.0.table_column_threshold.into_into_dart().into_dart(),
            self.0.table_row_threshold_ratio.into_into_dart().into_dart(),
            self.0.use_cache.into_into_dart().into_dart(),
            self.0.classify_use_pre_adapted_templates.into_into_dart().into_dart(),
            self.0.language_model_ngram_on.into_into_dart().into_dart(),
            self.0.tessedit_dont_blkrej_good_wds.into_into_dart().into_dart(),
            self.0.tessedit_dont_rowrej_good_wds.into_into_dart().into_dart(),
            self.0.tessedit_enable_dict_correction.into_into_dart().into_dart(),
            self.0.tessedit_char_whitelist.into_into_dart().into_dart(),
            self.0.tessedit_char_blacklist.into_into_dart().into_dart(),
            self.0.tessedit_use_primary_params_model.into_into_dart().into_dart(),
            self.0.textord_space_size_is_variable.into_into_dart().into_dart(),
            self.0.thresholding_method.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::TesseractConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::TesseractConfig>> for crate::TesseractConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::TesseractConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::TextAnnotation> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.start.into_into_dart().into_dart(),
            self.0.end.into_into_dart().into_dart(),
            self.0.kind.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::TextAnnotation> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::TextAnnotation>> for crate::TextAnnotation {
    fn into_into_dart(self) -> FrbWrapper<crate::TextAnnotation> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::TextDirection> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::TextDirection::LeftToRight => 0.into_dart(),
            crate::TextDirection::RightToLeft => 1.into_dart(),
            crate::TextDirection::Auto => 2.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::TextDirection> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::TextDirection>> for crate::TextDirection {
    fn into_into_dart(self) -> FrbWrapper<crate::TextDirection> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::TextExtractionResult> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.content.into_into_dart().into_dart(),
            self.0.line_count.into_into_dart().into_dart(),
            self.0.word_count.into_into_dart().into_dart(),
            self.0.character_count.into_into_dart().into_dart(),
            self.0.headers.into_into_dart().into_dart(),
            self.0.links.into_into_dart().into_dart(),
            self.0.code_blocks.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::TextExtractionResult> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::TextExtractionResult>> for crate::TextExtractionResult {
    fn into_into_dart(self) -> FrbWrapper<crate::TextExtractionResult> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::TextMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.line_count.into_into_dart().into_dart(),
            self.0.word_count.into_into_dart().into_dart(),
            self.0.character_count.into_into_dart().into_dart(),
            self.0.headers.into_into_dart().into_dart(),
            self.0.links.into_into_dart().into_dart(),
            self.0.code_blocks.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::TextMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::TextMetadata>> for crate::TextMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::TextMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::TokenReductionConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.level.into_into_dart().into_dart(),
            self.0.language_hint.into_into_dart().into_dart(),
            self.0.preserve_markdown.into_into_dart().into_dart(),
            self.0.preserve_code.into_into_dart().into_dart(),
            self.0.semantic_threshold.into_into_dart().into_dart(),
            self.0.enable_parallel.into_into_dart().into_dart(),
            self.0.use_simd.into_into_dart().into_dart(),
            self.0.custom_stopwords.into_into_dart().into_dart(),
            self.0.preserve_patterns.into_into_dart().into_dart(),
            self.0.target_reduction.into_into_dart().into_dart(),
            self.0.enable_semantic_clustering.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::TokenReductionConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::TokenReductionConfig>> for crate::TokenReductionConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::TokenReductionConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::TokenReductionOptions> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.mode.into_into_dart().into_dart(),
            self.0.preserve_important_words.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::TokenReductionOptions> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::TokenReductionOptions>> for crate::TokenReductionOptions {
    fn into_into_dart(self) -> FrbWrapper<crate::TokenReductionOptions> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::TreeSitterConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.enabled.into_into_dart().into_dart(),
            self.0.cache_dir.into_into_dart().into_dart(),
            self.0.languages.into_into_dart().into_dart(),
            self.0.groups.into_into_dart().into_dart(),
            self.0.process.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::TreeSitterConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::TreeSitterConfig>> for crate::TreeSitterConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::TreeSitterConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::TreeSitterProcessConfig> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.structure.into_into_dart().into_dart(),
            self.0.imports.into_into_dart().into_dart(),
            self.0.exports.into_into_dart().into_dart(),
            self.0.comments.into_into_dart().into_dart(),
            self.0.docstrings.into_into_dart().into_dart(),
            self.0.symbols.into_into_dart().into_dart(),
            self.0.diagnostics.into_into_dart().into_dart(),
            self.0.chunk_max_size.into_into_dart().into_dart(),
            self.0.content_mode.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::TreeSitterProcessConfig> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::TreeSitterProcessConfig>> for crate::TreeSitterProcessConfig {
    fn into_into_dart(self) -> FrbWrapper<crate::TreeSitterProcessConfig> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::UriKind> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        match self.0 {
            crate::UriKind::Hyperlink => 0.into_dart(),
            crate::UriKind::Image => 1.into_dart(),
            crate::UriKind::Anchor => 2.into_dart(),
            crate::UriKind::Citation => 3.into_dart(),
            crate::UriKind::Reference => 4.into_dart(),
            crate::UriKind::Email => 5.into_dart(),
            _ => unreachable!(),
        }
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::UriKind> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::UriKind>> for crate::UriKind {
    fn into_into_dart(self) -> FrbWrapper<crate::UriKind> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::XlsxAppProperties> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.application.into_into_dart().into_dart(),
            self.0.app_version.into_into_dart().into_dart(),
            self.0.doc_security.into_into_dart().into_dart(),
            self.0.scale_crop.into_into_dart().into_dart(),
            self.0.links_up_to_date.into_into_dart().into_dart(),
            self.0.shared_doc.into_into_dart().into_dart(),
            self.0.hyperlinks_changed.into_into_dart().into_dart(),
            self.0.company.into_into_dart().into_dart(),
            self.0.worksheet_names.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::XlsxAppProperties> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::XlsxAppProperties>> for crate::XlsxAppProperties {
    fn into_into_dart(self) -> FrbWrapper<crate::XlsxAppProperties> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::XmlExtractionResult> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.content.into_into_dart().into_dart(),
            self.0.element_count.into_into_dart().into_dart(),
            self.0.unique_elements.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::XmlExtractionResult> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::XmlExtractionResult>> for crate::XmlExtractionResult {
    fn into_into_dart(self) -> FrbWrapper<crate::XmlExtractionResult> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::XmlMetadata> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.element_count.into_into_dart().into_dart(),
            self.0.unique_elements.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::XmlMetadata> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::XmlMetadata>> for crate::XmlMetadata {
    fn into_into_dart(self) -> FrbWrapper<crate::XmlMetadata> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::YakeParams> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [self.0.window_size.into_into_dart().into_dart()].into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::YakeParams> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::YakeParams>> for crate::YakeParams {
    fn into_into_dart(self) -> FrbWrapper<crate::YakeParams> {
        self.into()
    }
}
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for FrbWrapper<crate::YearRange> {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [
            self.0.min.into_into_dart().into_dart(),
            self.0.max.into_into_dart().into_dart(),
            self.0.years.into_into_dart().into_dart(),
        ]
        .into_dart()
    }
}
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<crate::YearRange> {}
impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::YearRange>> for crate::YearRange {
    fn into_into_dart(self) -> FrbWrapper<crate::YearRange> {
        self.into()
    }
}

impl SseEncode for flutter_rust_bridge::for_generated::anyhow::Error {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(format!("{:?}", self), serializer);
    }
}

impl SseEncode for Arc<dyn DocumentExtractor + Send + Sync> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <RustOpaqueMoi<
            flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn DocumentExtractor + Send + Sync>>,
        >>::sse_encode(
            flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self),
            serializer,
        );
    }
}

impl SseEncode for Arc<dyn EmbeddingBackend + Send + Sync> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn EmbeddingBackend + Send + Sync >>>>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), serializer);
    }
}

impl SseEncode for Arc<dyn OcrBackend + Send + Sync> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn OcrBackend + Send + Sync >>>>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), serializer);
    }
}

impl SseEncode for Arc<dyn PostProcessor + Send + Sync> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn PostProcessor + Send + Sync >>>>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), serializer);
    }
}

impl SseEncode for Arc<dyn Renderer + Send + Sync> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn Renderer + Send + Sync >>>>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), serializer);
    }
}

impl SseEncode for Arc<dyn Validator + Send + Sync> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn Validator + Send + Sync >>>>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), serializer);
    }
}

impl SseEncode for DocumentExtractorDartImpl {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<DocumentExtractorDartImpl>>>::sse_encode(
            flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self),
            serializer,
        );
    }
}

impl SseEncode for EmbeddingBackendDartImpl {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<EmbeddingBackendDartImpl>>>::sse_encode(
            flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self),
            serializer,
        );
    }
}

impl SseEncode for OcrBackendDartImpl {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<OcrBackendDartImpl>>>::sse_encode(
            flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self),
            serializer,
        );
    }
}

impl SseEncode for PostProcessorDartImpl {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<PostProcessorDartImpl>>>::sse_encode(
            flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self),
            serializer,
        );
    }
}

impl SseEncode for RendererDartImpl {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<RendererDartImpl>>>::sse_encode(
            flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self),
            serializer,
        );
    }
}

impl SseEncode for ValidatorDartImpl {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<ValidatorDartImpl>>>::sse_encode(
            flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self),
            serializer,
        );
    }
}

impl SseEncode for flutter_rust_bridge::DartOpaque {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <usize>::sse_encode(self.encode(), serializer);
    }
}

impl SseEncode for std::collections::HashMap<String, String> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Vec<(String, String)>>::sse_encode(self.into_iter().collect(), serializer);
    }
}

impl SseEncode for std::collections::HashMap<String, i64> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Vec<(String, i64)>>::sse_encode(self.into_iter().collect(), serializer);
    }
}

impl SseEncode for std::collections::HashMap<String, Vec<String>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Vec<(String, Vec<String>)>>::sse_encode(self.into_iter().collect(), serializer);
    }
}

impl SseEncode for std::collections::HashMap<String, Vec<u8>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Vec<(String, Vec<u8>)>>::sse_encode(self.into_iter().collect(), serializer);
    }
}

impl SseEncode
    for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn DocumentExtractor + Send + Sync>>>
{
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        let (ptr, size) = self.sse_encode_raw();
        <usize>::sse_encode(ptr, serializer);
        <i32>::sse_encode(size, serializer);
    }
}

impl SseEncode
    for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn EmbeddingBackend + Send + Sync>>>
{
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        let (ptr, size) = self.sse_encode_raw();
        <usize>::sse_encode(ptr, serializer);
        <i32>::sse_encode(size, serializer);
    }
}

impl SseEncode
    for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn OcrBackend + Send + Sync>>>
{
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        let (ptr, size) = self.sse_encode_raw();
        <usize>::sse_encode(ptr, serializer);
        <i32>::sse_encode(size, serializer);
    }
}

impl SseEncode
    for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn PostProcessor + Send + Sync>>>
{
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        let (ptr, size) = self.sse_encode_raw();
        <usize>::sse_encode(ptr, serializer);
        <i32>::sse_encode(size, serializer);
    }
}

impl SseEncode
    for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn Renderer + Send + Sync>>>
{
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        let (ptr, size) = self.sse_encode_raw();
        <usize>::sse_encode(ptr, serializer);
        <i32>::sse_encode(size, serializer);
    }
}

impl SseEncode
    for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Arc<dyn Validator + Send + Sync>>>
{
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        let (ptr, size) = self.sse_encode_raw();
        <usize>::sse_encode(ptr, serializer);
        <i32>::sse_encode(size, serializer);
    }
}

impl SseEncode for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<DocumentExtractorDartImpl>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        let (ptr, size) = self.sse_encode_raw();
        <usize>::sse_encode(ptr, serializer);
        <i32>::sse_encode(size, serializer);
    }
}

impl SseEncode for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<EmbeddingBackendDartImpl>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        let (ptr, size) = self.sse_encode_raw();
        <usize>::sse_encode(ptr, serializer);
        <i32>::sse_encode(size, serializer);
    }
}

impl SseEncode for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<OcrBackendDartImpl>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        let (ptr, size) = self.sse_encode_raw();
        <usize>::sse_encode(ptr, serializer);
        <i32>::sse_encode(size, serializer);
    }
}

impl SseEncode for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<PostProcessorDartImpl>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        let (ptr, size) = self.sse_encode_raw();
        <usize>::sse_encode(ptr, serializer);
        <i32>::sse_encode(size, serializer);
    }
}

impl SseEncode for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<RendererDartImpl>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        let (ptr, size) = self.sse_encode_raw();
        <usize>::sse_encode(ptr, serializer);
        <i32>::sse_encode(size, serializer);
    }
}

impl SseEncode for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<ValidatorDartImpl>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        let (ptr, size) = self.sse_encode_raw();
        <usize>::sse_encode(ptr, serializer);
        <i32>::sse_encode(size, serializer);
    }
}

impl SseEncode for String {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Vec<u8>>::sse_encode(self.into_bytes(), serializer);
    }
}

impl SseEncode for crate::AccelerationConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <crate::ExecutionProviderType>::sse_encode(self.provider, serializer);
        <i64>::sse_encode(self.device_id, serializer);
    }
}

impl SseEncode for crate::AnnotationKind {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        match self {
            crate::AnnotationKind::Bold => {
                <i32>::sse_encode(0, serializer);
            }
            crate::AnnotationKind::Italic => {
                <i32>::sse_encode(1, serializer);
            }
            crate::AnnotationKind::Underline => {
                <i32>::sse_encode(2, serializer);
            }
            crate::AnnotationKind::Strikethrough => {
                <i32>::sse_encode(3, serializer);
            }
            crate::AnnotationKind::Code => {
                <i32>::sse_encode(4, serializer);
            }
            crate::AnnotationKind::Subscript => {
                <i32>::sse_encode(5, serializer);
            }
            crate::AnnotationKind::Superscript => {
                <i32>::sse_encode(6, serializer);
            }
            crate::AnnotationKind::Link { url, title } => {
                <i32>::sse_encode(7, serializer);
                <String>::sse_encode(url, serializer);
                <String>::sse_encode(title, serializer);
            }
            crate::AnnotationKind::Highlight => {
                <i32>::sse_encode(8, serializer);
            }
            crate::AnnotationKind::Color { value } => {
                <i32>::sse_encode(9, serializer);
                <String>::sse_encode(value, serializer);
            }
            crate::AnnotationKind::FontSize { value } => {
                <i32>::sse_encode(10, serializer);
                <String>::sse_encode(value, serializer);
            }
            crate::AnnotationKind::Custom { name, value } => {
                <i32>::sse_encode(11, serializer);
                <String>::sse_encode(name, serializer);
                <String>::sse_encode(value, serializer);
            }
            _ => {
                unimplemented!("");
            }
        }
    }
}

impl SseEncode for crate::ArchiveEntry {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.path, serializer);
        <String>::sse_encode(self.mime_type, serializer);
        <crate::ExtractionResult>::sse_encode(self.result, serializer);
    }
}

impl SseEncode for crate::ArchiveMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.format, serializer);
        <i64>::sse_encode(self.file_count, serializer);
        <Vec<String>>::sse_encode(self.file_list, serializer);
        <i64>::sse_encode(self.total_size, serializer);
        <Option<i64>>::sse_encode(self.compressed_size, serializer);
    }
}

impl SseEncode for crate::BBox {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <f64>::sse_encode(self.x1, serializer);
        <f64>::sse_encode(self.y1, serializer);
        <f64>::sse_encode(self.x2, serializer);
        <f64>::sse_encode(self.y2, serializer);
    }
}

impl SseEncode for crate::BatchBytesItem {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Vec<u8>>::sse_encode(self.content, serializer);
        <String>::sse_encode(self.mime_type, serializer);
        <Option<crate::FileExtractionConfig>>::sse_encode(self.config, serializer);
    }
}

impl SseEncode for crate::BatchFileItem {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.path, serializer);
        <Option<crate::FileExtractionConfig>>::sse_encode(self.config, serializer);
    }
}

impl SseEncode for crate::BibtexMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.entry_count, serializer);
        <Vec<String>>::sse_encode(self.citation_keys, serializer);
        <Vec<String>>::sse_encode(self.authors, serializer);
        <Option<crate::YearRange>>::sse_encode(self.year_range, serializer);
        <Option<std::collections::HashMap<String, i64>>>::sse_encode(self.entry_types, serializer);
    }
}

impl SseEncode for crate::BlockType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::BlockType::Paragraph => 0,
                crate::BlockType::Heading => 1,
                crate::BlockType::Blockquote => 2,
                crate::BlockType::CodeBlock => 3,
                crate::BlockType::ListItem => 4,
                crate::BlockType::OrderedList => 5,
                crate::BlockType::BulletList => 6,
                crate::BlockType::TaskList => 7,
                crate::BlockType::DefinitionList => 8,
                crate::BlockType::DefinitionTerm => 9,
                crate::BlockType::DefinitionDescription => 10,
                crate::BlockType::Div => 11,
                crate::BlockType::Section => 12,
                crate::BlockType::ThematicBreak => 13,
                crate::BlockType::RawBlock => 14,
                crate::BlockType::MathDisplay => 15,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for bool {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        serializer.cursor.write_u8(self as _).unwrap();
    }
}

impl SseEncode for crate::BoundingBox {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <f64>::sse_encode(self.x0, serializer);
        <f64>::sse_encode(self.y0, serializer);
        <f64>::sse_encode(self.x1, serializer);
        <f64>::sse_encode(self.y1, serializer);
    }
}

impl SseEncode for crate::CacheStats {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.total_files, serializer);
        <f64>::sse_encode(self.total_size_mb, serializer);
        <f64>::sse_encode(self.available_space_mb, serializer);
        <f64>::sse_encode(self.oldest_file_age_days, serializer);
        <f64>::sse_encode(self.newest_file_age_days, serializer);
    }
}

impl SseEncode for crate::CellChange {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.row, serializer);
        <i64>::sse_encode(self.col, serializer);
        <String>::sse_encode(self.from, serializer);
        <String>::sse_encode(self.to, serializer);
    }
}

impl SseEncode for crate::Chunk {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.content, serializer);
        <crate::ChunkType>::sse_encode(self.chunk_type, serializer);
        <Option<Vec<f64>>>::sse_encode(self.embedding, serializer);
        <crate::ChunkMetadata>::sse_encode(self.metadata, serializer);
    }
}

impl SseEncode for crate::ChunkMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.byte_start, serializer);
        <i64>::sse_encode(self.byte_end, serializer);
        <Option<i64>>::sse_encode(self.token_count, serializer);
        <i64>::sse_encode(self.chunk_index, serializer);
        <i64>::sse_encode(self.total_chunks, serializer);
        <Option<i64>>::sse_encode(self.first_page, serializer);
        <Option<i64>>::sse_encode(self.last_page, serializer);
        <Option<crate::HeadingContext>>::sse_encode(self.heading_context, serializer);
        <Vec<i64>>::sse_encode(self.image_indices, serializer);
    }
}

impl SseEncode for crate::ChunkSizing {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        match self {
            crate::ChunkSizing::Characters => {
                <i32>::sse_encode(0, serializer);
            }
            crate::ChunkSizing::Tokenizer { model, cache_dir } => {
                <i32>::sse_encode(1, serializer);
                <String>::sse_encode(model, serializer);
                <String>::sse_encode(cache_dir, serializer);
            }
            _ => {
                unimplemented!("");
            }
        }
    }
}

impl SseEncode for crate::ChunkType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::ChunkType::Heading => 0,
                crate::ChunkType::PartyList => 1,
                crate::ChunkType::Definitions => 2,
                crate::ChunkType::OperativeClause => 3,
                crate::ChunkType::SignatureBlock => 4,
                crate::ChunkType::Schedule => 5,
                crate::ChunkType::TableLike => 6,
                crate::ChunkType::Formula => 7,
                crate::ChunkType::CodeBlock => 8,
                crate::ChunkType::Image => 9,
                crate::ChunkType::OrgChart => 10,
                crate::ChunkType::Diagram => 11,
                crate::ChunkType::Unknown => 12,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::ChunkerType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::ChunkerType::Text => 0,
                crate::ChunkerType::Markdown => 1,
                crate::ChunkerType::Yaml => 2,
                crate::ChunkerType::Semantic => 3,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::ChunkingConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.max_characters, serializer);
        <i64>::sse_encode(self.overlap, serializer);
        <bool>::sse_encode(self.trim, serializer);
        <crate::ChunkerType>::sse_encode(self.chunker_type, serializer);
        <Option<crate::EmbeddingConfig>>::sse_encode(self.embedding, serializer);
        <Option<String>>::sse_encode(self.preset, serializer);
        <crate::ChunkSizing>::sse_encode(self.sizing, serializer);
        <bool>::sse_encode(self.prepend_heading_context, serializer);
        <Option<f64>>::sse_encode(self.topic_threshold, serializer);
    }
}

impl SseEncode for crate::CitationMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.citation_count, serializer);
        <Option<String>>::sse_encode(self.format, serializer);
        <Vec<String>>::sse_encode(self.authors, serializer);
        <Option<crate::YearRange>>::sse_encode(self.year_range, serializer);
        <Vec<String>>::sse_encode(self.dois, serializer);
        <Vec<String>>::sse_encode(self.keywords, serializer);
    }
}

impl SseEncode for crate::CodeContentMode {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::CodeContentMode::Chunks => 0,
                crate::CodeContentMode::Raw => 1,
                crate::CodeContentMode::Structure => 2,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::ContentFilterConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.include_headers, serializer);
        <bool>::sse_encode(self.include_footers, serializer);
        <bool>::sse_encode(self.strip_repeating_text, serializer);
        <bool>::sse_encode(self.include_watermarks, serializer);
    }
}

impl SseEncode for crate::ContentLayer {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::ContentLayer::Body => 0,
                crate::ContentLayer::Header => 1,
                crate::ContentLayer::Footer => 2,
                crate::ContentLayer::Footnote => 3,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::ContributorRole {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.name, serializer);
        <Option<String>>::sse_encode(self.role, serializer);
    }
}

impl SseEncode for crate::CoreProperties {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Option<String>>::sse_encode(self.title, serializer);
        <Option<String>>::sse_encode(self.subject, serializer);
        <Option<String>>::sse_encode(self.creator, serializer);
        <Option<String>>::sse_encode(self.keywords, serializer);
        <Option<String>>::sse_encode(self.description, serializer);
        <Option<String>>::sse_encode(self.last_modified_by, serializer);
        <Option<String>>::sse_encode(self.revision, serializer);
        <Option<String>>::sse_encode(self.created, serializer);
        <Option<String>>::sse_encode(self.modified, serializer);
        <Option<String>>::sse_encode(self.category, serializer);
        <Option<String>>::sse_encode(self.content_status, serializer);
        <Option<String>>::sse_encode(self.language, serializer);
        <Option<String>>::sse_encode(self.identifier, serializer);
        <Option<String>>::sse_encode(self.version, serializer);
        <Option<String>>::sse_encode(self.last_printed, serializer);
    }
}

impl SseEncode for crate::CsvMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.row_count, serializer);
        <i64>::sse_encode(self.column_count, serializer);
        <Option<String>>::sse_encode(self.delimiter, serializer);
        <bool>::sse_encode(self.has_header, serializer);
        <Option<Vec<String>>>::sse_encode(self.column_types, serializer);
    }
}

impl SseEncode for crate::DbfFieldInfo {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.name, serializer);
        <String>::sse_encode(self.field_type, serializer);
    }
}

impl SseEncode for crate::DbfMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.record_count, serializer);
        <i64>::sse_encode(self.field_count, serializer);
        <Vec<crate::DbfFieldInfo>>::sse_encode(self.fields, serializer);
    }
}

impl SseEncode for crate::DetectResponse {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.mime_type, serializer);
        <Option<String>>::sse_encode(self.filename, serializer);
    }
}

impl SseEncode for crate::DetectionResult {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.page_width, serializer);
        <i64>::sse_encode(self.page_height, serializer);
        <Vec<crate::LayoutDetection>>::sse_encode(self.detections, serializer);
    }
}

impl SseEncode for crate::DiffHunk {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.from_line, serializer);
        <i64>::sse_encode(self.from_count, serializer);
        <i64>::sse_encode(self.to_line, serializer);
        <i64>::sse_encode(self.to_count, serializer);
        <Vec<crate::DiffLine>>::sse_encode(self.lines, serializer);
    }
}

impl SseEncode for crate::DiffLine {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        match self {
            crate::DiffLine::Context { field0 } => {
                <i32>::sse_encode(0, serializer);
                <String>::sse_encode(field0, serializer);
            }
            crate::DiffLine::Added { field0 } => {
                <i32>::sse_encode(1, serializer);
                <String>::sse_encode(field0, serializer);
            }
            crate::DiffLine::Removed { field0 } => {
                <i32>::sse_encode(2, serializer);
                <String>::sse_encode(field0, serializer);
            }
            _ => {
                unimplemented!("");
            }
        }
    }
}

impl SseEncode for crate::DiffOptions {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.include_metadata, serializer);
        <bool>::sse_encode(self.include_embedded, serializer);
        <Option<i64>>::sse_encode(self.max_content_chars, serializer);
    }
}

impl SseEncode for crate::DjotContent {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.plain_text, serializer);
        <Vec<crate::FormattedBlock>>::sse_encode(self.blocks, serializer);
        <crate::Metadata>::sse_encode(self.metadata, serializer);
        <Vec<crate::Table>>::sse_encode(self.tables, serializer);
        <Vec<crate::DjotImage>>::sse_encode(self.images, serializer);
        <Vec<crate::DjotLink>>::sse_encode(self.links, serializer);
        <Vec<crate::Footnote>>::sse_encode(self.footnotes, serializer);
        <Vec<String>>::sse_encode(self.attributes, serializer);
    }
}

impl SseEncode for crate::DjotImage {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.src, serializer);
        <String>::sse_encode(self.alt, serializer);
        <Option<String>>::sse_encode(self.title, serializer);
        <Option<String>>::sse_encode(self.attributes, serializer);
    }
}

impl SseEncode for crate::DjotLink {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.url, serializer);
        <String>::sse_encode(self.text, serializer);
        <Option<String>>::sse_encode(self.title, serializer);
        <Option<String>>::sse_encode(self.attributes, serializer);
    }
}

impl SseEncode for crate::DocumentNode {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.id, serializer);
        <crate::NodeContent>::sse_encode(self.content, serializer);
        <Option<i64>>::sse_encode(self.parent, serializer);
        <Vec<i64>>::sse_encode(self.children, serializer);
        <crate::ContentLayer>::sse_encode(self.content_layer, serializer);
        <Option<i64>>::sse_encode(self.page, serializer);
        <Option<i64>>::sse_encode(self.page_end, serializer);
        <Option<crate::BoundingBox>>::sse_encode(self.bbox, serializer);
        <Vec<crate::TextAnnotation>>::sse_encode(self.annotations, serializer);
        <Option<std::collections::HashMap<String, String>>>::sse_encode(self.attributes, serializer);
    }
}

impl SseEncode for crate::DocumentRelationship {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.source, serializer);
        <i64>::sse_encode(self.target, serializer);
        <crate::RelationshipKind>::sse_encode(self.kind, serializer);
    }
}

impl SseEncode for crate::DocumentRevision {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.revision_id, serializer);
        <Option<String>>::sse_encode(self.author, serializer);
        <Option<String>>::sse_encode(self.timestamp, serializer);
        <crate::RevisionKind>::sse_encode(self.kind, serializer);
        <Option<crate::RevisionAnchor>>::sse_encode(self.anchor, serializer);
        <crate::RevisionDelta>::sse_encode(self.delta, serializer);
    }
}

impl SseEncode for crate::DocumentStructure {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Vec<crate::DocumentNode>>::sse_encode(self.nodes, serializer);
        <Option<String>>::sse_encode(self.source_format, serializer);
        <Vec<crate::DocumentRelationship>>::sse_encode(self.relationships, serializer);
        <Vec<String>>::sse_encode(self.node_types, serializer);
    }
}

impl SseEncode for crate::DocxAppProperties {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Option<String>>::sse_encode(self.application, serializer);
        <Option<String>>::sse_encode(self.app_version, serializer);
        <Option<String>>::sse_encode(self.template, serializer);
        <Option<i64>>::sse_encode(self.total_time, serializer);
        <Option<i64>>::sse_encode(self.pages, serializer);
        <Option<i64>>::sse_encode(self.words, serializer);
        <Option<i64>>::sse_encode(self.characters, serializer);
        <Option<i64>>::sse_encode(self.characters_with_spaces, serializer);
        <Option<i64>>::sse_encode(self.lines, serializer);
        <Option<i64>>::sse_encode(self.paragraphs, serializer);
        <Option<String>>::sse_encode(self.company, serializer);
        <Option<i64>>::sse_encode(self.doc_security, serializer);
        <Option<bool>>::sse_encode(self.scale_crop, serializer);
        <Option<bool>>::sse_encode(self.links_up_to_date, serializer);
        <Option<bool>>::sse_encode(self.shared_doc, serializer);
        <Option<bool>>::sse_encode(self.hyperlinks_changed, serializer);
    }
}

impl SseEncode for crate::DocxMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Option<crate::CoreProperties>>::sse_encode(self.core_properties, serializer);
        <Option<crate::DocxAppProperties>>::sse_encode(self.app_properties, serializer);
        <Option<std::collections::HashMap<String, String>>>::sse_encode(self.custom_properties, serializer);
    }
}

impl SseEncode for crate::Element {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.element_id, serializer);
        <crate::ElementType>::sse_encode(self.element_type, serializer);
        <String>::sse_encode(self.text, serializer);
        <crate::ElementMetadata>::sse_encode(self.metadata, serializer);
    }
}

impl SseEncode for crate::ElementMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Option<i64>>::sse_encode(self.page_number, serializer);
        <Option<String>>::sse_encode(self.filename, serializer);
        <Option<crate::BoundingBox>>::sse_encode(self.coordinates, serializer);
        <Option<i64>>::sse_encode(self.element_index, serializer);
        <std::collections::HashMap<String, String>>::sse_encode(self.additional, serializer);
    }
}

impl SseEncode for crate::ElementType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::ElementType::Title => 0,
                crate::ElementType::NarrativeText => 1,
                crate::ElementType::Heading => 2,
                crate::ElementType::ListItem => 3,
                crate::ElementType::Table => 4,
                crate::ElementType::Image => 5,
                crate::ElementType::PageBreak => 6,
                crate::ElementType::CodeBlock => 7,
                crate::ElementType::BlockQuote => 8,
                crate::ElementType::Footer => 9,
                crate::ElementType::Header => 10,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::EmailAttachment {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Option<String>>::sse_encode(self.name, serializer);
        <Option<String>>::sse_encode(self.filename, serializer);
        <Option<String>>::sse_encode(self.mime_type, serializer);
        <Option<i64>>::sse_encode(self.size, serializer);
        <bool>::sse_encode(self.is_image, serializer);
        <Option<Vec<u8>>>::sse_encode(self.data, serializer);
    }
}

impl SseEncode for crate::EmailConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Option<i64>>::sse_encode(self.msg_fallback_codepage, serializer);
    }
}

impl SseEncode for crate::EmailExtractionResult {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Option<String>>::sse_encode(self.subject, serializer);
        <Option<String>>::sse_encode(self.from_email, serializer);
        <Vec<String>>::sse_encode(self.to_emails, serializer);
        <Vec<String>>::sse_encode(self.cc_emails, serializer);
        <Vec<String>>::sse_encode(self.bcc_emails, serializer);
        <Option<String>>::sse_encode(self.date, serializer);
        <Option<String>>::sse_encode(self.message_id, serializer);
        <Option<String>>::sse_encode(self.plain_text, serializer);
        <Option<String>>::sse_encode(self.html_content, serializer);
        <String>::sse_encode(self.content, serializer);
        <Vec<crate::EmailAttachment>>::sse_encode(self.attachments, serializer);
        <std::collections::HashMap<String, String>>::sse_encode(self.metadata, serializer);
    }
}

impl SseEncode for crate::EmailMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Option<String>>::sse_encode(self.from_email, serializer);
        <Option<String>>::sse_encode(self.from_name, serializer);
        <Vec<String>>::sse_encode(self.to_emails, serializer);
        <Vec<String>>::sse_encode(self.cc_emails, serializer);
        <Vec<String>>::sse_encode(self.bcc_emails, serializer);
        <Option<String>>::sse_encode(self.message_id, serializer);
        <Vec<String>>::sse_encode(self.attachments, serializer);
    }
}

impl SseEncode for crate::EmbeddedChanges {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Vec<crate::ArchiveEntry>>::sse_encode(self.added, serializer);
        <Vec<crate::ArchiveEntry>>::sse_encode(self.removed, serializer);
        <Vec<crate::EmbeddedDiff>>::sse_encode(self.changed, serializer);
    }
}

impl SseEncode for crate::EmbeddedDiff {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.path, serializer);
        <crate::ExtractionDiff>::sse_encode(self.diff, serializer);
    }
}

impl SseEncode for crate::EmbeddedFile {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.name, serializer);
        <Vec<u8>>::sse_encode(self.data, serializer);
        <i64>::sse_encode(self.compressed_size, serializer);
        <Option<String>>::sse_encode(self.mime_type, serializer);
    }
}

impl SseEncode for crate::EmbeddingConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <crate::EmbeddingModelType>::sse_encode(self.model, serializer);
        <bool>::sse_encode(self.normalize, serializer);
        <i64>::sse_encode(self.batch_size, serializer);
        <bool>::sse_encode(self.show_download_progress, serializer);
        <Option<String>>::sse_encode(self.cache_dir, serializer);
        <Option<crate::AccelerationConfig>>::sse_encode(self.acceleration, serializer);
        <Option<i64>>::sse_encode(self.max_embed_duration_secs, serializer);
    }
}

impl SseEncode for crate::EmbeddingModelType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        match self {
            crate::EmbeddingModelType::Preset { name } => {
                <i32>::sse_encode(0, serializer);
                <String>::sse_encode(name, serializer);
            }
            crate::EmbeddingModelType::Custom { model_id, dimensions } => {
                <i32>::sse_encode(1, serializer);
                <String>::sse_encode(model_id, serializer);
                <i64>::sse_encode(dimensions, serializer);
            }
            crate::EmbeddingModelType::Llm { llm } => {
                <i32>::sse_encode(2, serializer);
                <crate::LlmConfig>::sse_encode(llm, serializer);
            }
            crate::EmbeddingModelType::Plugin { name } => {
                <i32>::sse_encode(3, serializer);
                <String>::sse_encode(name, serializer);
            }
            _ => {
                unimplemented!("");
            }
        }
    }
}

impl SseEncode for crate::EmbeddingPreset {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.name, serializer);
        <i64>::sse_encode(self.chunk_size, serializer);
        <i64>::sse_encode(self.overlap, serializer);
        <String>::sse_encode(self.model_repo, serializer);
        <String>::sse_encode(self.pooling, serializer);
        <String>::sse_encode(self.model_file, serializer);
        <i64>::sse_encode(self.dimensions, serializer);
        <String>::sse_encode(self.description, serializer);
    }
}

impl SseEncode for crate::EpubMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Option<String>>::sse_encode(self.coverage, serializer);
        <Option<String>>::sse_encode(self.dc_format, serializer);
        <Option<String>>::sse_encode(self.relation, serializer);
        <Option<String>>::sse_encode(self.source, serializer);
        <Option<String>>::sse_encode(self.dc_type, serializer);
        <Option<String>>::sse_encode(self.cover_image, serializer);
    }
}

impl SseEncode for crate::ErrorMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.error_type, serializer);
        <String>::sse_encode(self.message, serializer);
    }
}

impl SseEncode for crate::ExcelMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Option<i64>>::sse_encode(self.sheet_count, serializer);
        <Option<Vec<String>>>::sse_encode(self.sheet_names, serializer);
    }
}

impl SseEncode for crate::ExcelSheet {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.name, serializer);
        <String>::sse_encode(self.markdown, serializer);
        <i64>::sse_encode(self.row_count, serializer);
        <i64>::sse_encode(self.col_count, serializer);
        <i64>::sse_encode(self.cell_count, serializer);
        <Option<Vec<Vec<String>>>>::sse_encode(self.table_cells, serializer);
    }
}

impl SseEncode for crate::ExcelWorkbook {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Vec<crate::ExcelSheet>>::sse_encode(self.sheets, serializer);
        <std::collections::HashMap<String, String>>::sse_encode(self.metadata, serializer);
        <Option<Vec<crate::DocumentRevision>>>::sse_encode(self.revisions, serializer);
    }
}

impl SseEncode for crate::ExecutionProviderType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::ExecutionProviderType::Auto => 0,
                crate::ExecutionProviderType::Cpu => 1,
                crate::ExecutionProviderType::CoreMl => 2,
                crate::ExecutionProviderType::Cuda => 3,
                crate::ExecutionProviderType::TensorRt => 4,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::ExtractedImage {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Vec<u8>>::sse_encode(self.data, serializer);
        <String>::sse_encode(self.format, serializer);
        <i64>::sse_encode(self.image_index, serializer);
        <Option<i64>>::sse_encode(self.page_number, serializer);
        <Option<i64>>::sse_encode(self.width, serializer);
        <Option<i64>>::sse_encode(self.height, serializer);
        <Option<String>>::sse_encode(self.colorspace, serializer);
        <Option<i64>>::sse_encode(self.bits_per_component, serializer);
        <bool>::sse_encode(self.is_mask, serializer);
        <Option<String>>::sse_encode(self.description, serializer);
        <Option<crate::ExtractionResult>>::sse_encode(self.ocr_result, serializer);
        <Option<crate::BoundingBox>>::sse_encode(self.bounding_box, serializer);
        <Option<String>>::sse_encode(self.source_path, serializer);
        <Option<crate::ImageKind>>::sse_encode(self.image_kind, serializer);
        <Option<f64>>::sse_encode(self.kind_confidence, serializer);
        <Option<i64>>::sse_encode(self.cluster_id, serializer);
    }
}

impl SseEncode for crate::ExtractedUri {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.url, serializer);
        <Option<String>>::sse_encode(self.label, serializer);
        <Option<i64>>::sse_encode(self.page, serializer);
        <crate::UriKind>::sse_encode(self.kind, serializer);
    }
}

impl SseEncode for crate::ExtractionConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.use_cache, serializer);
        <bool>::sse_encode(self.enable_quality_processing, serializer);
        <Option<crate::OcrConfig>>::sse_encode(self.ocr, serializer);
        <bool>::sse_encode(self.force_ocr, serializer);
        <Option<Vec<i64>>>::sse_encode(self.force_ocr_pages, serializer);
        <bool>::sse_encode(self.disable_ocr, serializer);
        <Option<crate::ChunkingConfig>>::sse_encode(self.chunking, serializer);
        <Option<crate::ContentFilterConfig>>::sse_encode(self.content_filter, serializer);
        <Option<crate::ImageExtractionConfig>>::sse_encode(self.images, serializer);
        <Option<crate::PdfConfig>>::sse_encode(self.pdf_options, serializer);
        <Option<crate::TokenReductionOptions>>::sse_encode(self.token_reduction, serializer);
        <Option<crate::LanguageDetectionConfig>>::sse_encode(self.language_detection, serializer);
        <Option<crate::PageConfig>>::sse_encode(self.pages, serializer);
        <Option<crate::KeywordConfig>>::sse_encode(self.keywords, serializer);
        <Option<crate::PostProcessorConfig>>::sse_encode(self.postprocessor, serializer);
        <Option<String>>::sse_encode(self.html_options, serializer);
        <Option<crate::HtmlOutputConfig>>::sse_encode(self.html_output, serializer);
        <Option<i64>>::sse_encode(self.extraction_timeout_secs, serializer);
        <Option<i64>>::sse_encode(self.max_concurrent_extractions, serializer);
        <crate::ResultFormat>::sse_encode(self.result_format, serializer);
        <Option<crate::SecurityLimits>>::sse_encode(self.security_limits, serializer);
        <Option<i64>>::sse_encode(self.max_embedded_file_bytes, serializer);
        <crate::OutputFormat>::sse_encode(self.output_format, serializer);
        <Option<crate::LayoutDetectionConfig>>::sse_encode(self.layout, serializer);
        <bool>::sse_encode(self.use_layout_for_markdown, serializer);
        <bool>::sse_encode(self.include_document_structure, serializer);
        <Option<crate::AccelerationConfig>>::sse_encode(self.acceleration, serializer);
        <Option<String>>::sse_encode(self.cache_namespace, serializer);
        <Option<i64>>::sse_encode(self.cache_ttl_secs, serializer);
        <Option<crate::EmailConfig>>::sse_encode(self.email, serializer);
        <Option<String>>::sse_encode(self.concurrency, serializer);
        <i64>::sse_encode(self.max_archive_depth, serializer);
        <Option<crate::TreeSitterConfig>>::sse_encode(self.tree_sitter, serializer);
        <Option<crate::StructuredExtractionConfig>>::sse_encode(self.structured_extraction, serializer);
        <Option<String>>::sse_encode(self.cancel_token, serializer);
    }
}

impl SseEncode for crate::ExtractionDiff {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Vec<crate::DiffHunk>>::sse_encode(self.content_diff, serializer);
        <Vec<crate::Table>>::sse_encode(self.tables_added, serializer);
        <Vec<crate::Table>>::sse_encode(self.tables_removed, serializer);
        <Vec<crate::TableDiff>>::sse_encode(self.tables_changed, serializer);
        <String>::sse_encode(self.metadata_changed, serializer);
        <crate::EmbeddedChanges>::sse_encode(self.embedded_changes, serializer);
    }
}

impl SseEncode for crate::ExtractionMethod {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::ExtractionMethod::Native => 0,
                crate::ExtractionMethod::Ocr => 1,
                crate::ExtractionMethod::Mixed => 2,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::ExtractionResult {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.content, serializer);
        <String>::sse_encode(self.mime_type, serializer);
        <crate::Metadata>::sse_encode(self.metadata, serializer);
        <Option<crate::ExtractionMethod>>::sse_encode(self.extraction_method, serializer);
        <Vec<crate::Table>>::sse_encode(self.tables, serializer);
        <Option<Vec<String>>>::sse_encode(self.detected_languages, serializer);
        <Option<Vec<crate::Chunk>>>::sse_encode(self.chunks, serializer);
        <Option<Vec<crate::ExtractedImage>>>::sse_encode(self.images, serializer);
        <Option<Vec<crate::PageContent>>>::sse_encode(self.pages, serializer);
        <Option<Vec<crate::Element>>>::sse_encode(self.elements, serializer);
        <Option<crate::DjotContent>>::sse_encode(self.djot_content, serializer);
        <Option<Vec<crate::OcrElement>>>::sse_encode(self.ocr_elements, serializer);
        <Option<crate::DocumentStructure>>::sse_encode(self.document, serializer);
        <Option<Vec<crate::Keyword>>>::sse_encode(self.extracted_keywords, serializer);
        <Option<f64>>::sse_encode(self.quality_score, serializer);
        <Vec<crate::ProcessingWarning>>::sse_encode(self.processing_warnings, serializer);
        <Option<Vec<crate::PdfAnnotation>>>::sse_encode(self.annotations, serializer);
        <Option<Vec<crate::ArchiveEntry>>>::sse_encode(self.children, serializer);
        <Option<Vec<crate::ExtractedUri>>>::sse_encode(self.uris, serializer);
        <Option<Vec<crate::DocumentRevision>>>::sse_encode(self.revisions, serializer);
        <Option<String>>::sse_encode(self.structured_output, serializer);
        <Option<String>>::sse_encode(self.code_intelligence, serializer);
        <Option<Vec<crate::LlmUsage>>>::sse_encode(self.llm_usage, serializer);
        <Option<String>>::sse_encode(self.formatted_content, serializer);
        <Option<String>>::sse_encode(self.ocr_internal_document, serializer);
    }
}

impl SseEncode for f64 {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        serializer.cursor.write_f64::<NativeEndian>(self).unwrap();
    }
}

impl SseEncode for crate::FictionBookMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Vec<String>>::sse_encode(self.genres, serializer);
        <Vec<String>>::sse_encode(self.sequences, serializer);
        <Option<String>>::sse_encode(self.annotation, serializer);
    }
}

impl SseEncode for crate::FileExtractionConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Option<bool>>::sse_encode(self.enable_quality_processing, serializer);
        <Option<crate::OcrConfig>>::sse_encode(self.ocr, serializer);
        <Option<bool>>::sse_encode(self.force_ocr, serializer);
        <Option<Vec<i64>>>::sse_encode(self.force_ocr_pages, serializer);
        <Option<bool>>::sse_encode(self.disable_ocr, serializer);
        <Option<crate::ChunkingConfig>>::sse_encode(self.chunking, serializer);
        <Option<crate::ContentFilterConfig>>::sse_encode(self.content_filter, serializer);
        <Option<crate::ImageExtractionConfig>>::sse_encode(self.images, serializer);
        <Option<crate::PdfConfig>>::sse_encode(self.pdf_options, serializer);
        <Option<crate::TokenReductionOptions>>::sse_encode(self.token_reduction, serializer);
        <Option<crate::LanguageDetectionConfig>>::sse_encode(self.language_detection, serializer);
        <Option<crate::PageConfig>>::sse_encode(self.pages, serializer);
        <Option<crate::KeywordConfig>>::sse_encode(self.keywords, serializer);
        <Option<crate::PostProcessorConfig>>::sse_encode(self.postprocessor, serializer);
        <Option<String>>::sse_encode(self.html_options, serializer);
        <Option<crate::ResultFormat>>::sse_encode(self.result_format, serializer);
        <Option<crate::OutputFormat>>::sse_encode(self.output_format, serializer);
        <Option<bool>>::sse_encode(self.include_document_structure, serializer);
        <Option<crate::LayoutDetectionConfig>>::sse_encode(self.layout, serializer);
        <Option<i64>>::sse_encode(self.timeout_secs, serializer);
        <Option<crate::TreeSitterConfig>>::sse_encode(self.tree_sitter, serializer);
        <Option<crate::StructuredExtractionConfig>>::sse_encode(self.structured_extraction, serializer);
    }
}

impl SseEncode for crate::Footnote {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.label, serializer);
        <Vec<crate::FormattedBlock>>::sse_encode(self.content, serializer);
    }
}

impl SseEncode for crate::FormatMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        match self {
            crate::FormatMetadata::Pdf { field0 } => {
                <i32>::sse_encode(0, serializer);
                <crate::PdfMetadata>::sse_encode(field0, serializer);
            }
            crate::FormatMetadata::Docx { field0 } => {
                <i32>::sse_encode(1, serializer);
                <crate::DocxMetadata>::sse_encode(field0, serializer);
            }
            crate::FormatMetadata::Excel { field0 } => {
                <i32>::sse_encode(2, serializer);
                <crate::ExcelMetadata>::sse_encode(field0, serializer);
            }
            crate::FormatMetadata::Email { field0 } => {
                <i32>::sse_encode(3, serializer);
                <crate::EmailMetadata>::sse_encode(field0, serializer);
            }
            crate::FormatMetadata::Pptx { field0 } => {
                <i32>::sse_encode(4, serializer);
                <crate::PptxMetadata>::sse_encode(field0, serializer);
            }
            crate::FormatMetadata::Archive { field0 } => {
                <i32>::sse_encode(5, serializer);
                <crate::ArchiveMetadata>::sse_encode(field0, serializer);
            }
            crate::FormatMetadata::Image { field0 } => {
                <i32>::sse_encode(6, serializer);
                <crate::ImageMetadata>::sse_encode(field0, serializer);
            }
            crate::FormatMetadata::Xml { field0 } => {
                <i32>::sse_encode(7, serializer);
                <crate::XmlMetadata>::sse_encode(field0, serializer);
            }
            crate::FormatMetadata::Text { field0 } => {
                <i32>::sse_encode(8, serializer);
                <crate::TextMetadata>::sse_encode(field0, serializer);
            }
            crate::FormatMetadata::Html { field0 } => {
                <i32>::sse_encode(9, serializer);
                <crate::HtmlMetadata>::sse_encode(field0, serializer);
            }
            crate::FormatMetadata::Ocr { field0 } => {
                <i32>::sse_encode(10, serializer);
                <crate::OcrMetadata>::sse_encode(field0, serializer);
            }
            crate::FormatMetadata::Csv { field0 } => {
                <i32>::sse_encode(11, serializer);
                <crate::CsvMetadata>::sse_encode(field0, serializer);
            }
            crate::FormatMetadata::Bibtex { field0 } => {
                <i32>::sse_encode(12, serializer);
                <crate::BibtexMetadata>::sse_encode(field0, serializer);
            }
            crate::FormatMetadata::Citation { field0 } => {
                <i32>::sse_encode(13, serializer);
                <crate::CitationMetadata>::sse_encode(field0, serializer);
            }
            crate::FormatMetadata::FictionBook { field0 } => {
                <i32>::sse_encode(14, serializer);
                <crate::FictionBookMetadata>::sse_encode(field0, serializer);
            }
            crate::FormatMetadata::Dbf { field0 } => {
                <i32>::sse_encode(15, serializer);
                <crate::DbfMetadata>::sse_encode(field0, serializer);
            }
            crate::FormatMetadata::Jats { field0 } => {
                <i32>::sse_encode(16, serializer);
                <crate::JatsMetadata>::sse_encode(field0, serializer);
            }
            crate::FormatMetadata::Epub { field0 } => {
                <i32>::sse_encode(17, serializer);
                <crate::EpubMetadata>::sse_encode(field0, serializer);
            }
            crate::FormatMetadata::Pst { field0 } => {
                <i32>::sse_encode(18, serializer);
                <crate::PstMetadata>::sse_encode(field0, serializer);
            }
            crate::FormatMetadata::Code { field0 } => {
                <i32>::sse_encode(19, serializer);
                <String>::sse_encode(field0, serializer);
            }
            _ => {
                unimplemented!("");
            }
        }
    }
}

impl SseEncode for crate::FormattedBlock {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <crate::BlockType>::sse_encode(self.block_type, serializer);
        <Option<i64>>::sse_encode(self.level, serializer);
        <Vec<crate::InlineElement>>::sse_encode(self.inline_content, serializer);
        <Option<String>>::sse_encode(self.attributes, serializer);
        <Option<String>>::sse_encode(self.language, serializer);
        <Option<String>>::sse_encode(self.code, serializer);
        <Vec<crate::FormattedBlock>>::sse_encode(self.children, serializer);
    }
}

impl SseEncode for crate::GridCell {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.content, serializer);
        <i64>::sse_encode(self.row, serializer);
        <i64>::sse_encode(self.col, serializer);
        <i64>::sse_encode(self.row_span, serializer);
        <i64>::sse_encode(self.col_span, serializer);
        <bool>::sse_encode(self.is_header, serializer);
        <Option<crate::BoundingBox>>::sse_encode(self.bbox, serializer);
    }
}

impl SseEncode for crate::HeaderMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.level, serializer);
        <String>::sse_encode(self.text, serializer);
        <Option<String>>::sse_encode(self.id, serializer);
        <i64>::sse_encode(self.depth, serializer);
        <i64>::sse_encode(self.html_offset, serializer);
    }
}

impl SseEncode for crate::HeadingContext {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Vec<crate::HeadingLevel>>::sse_encode(self.headings, serializer);
    }
}

impl SseEncode for crate::HeadingLevel {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.level, serializer);
        <String>::sse_encode(self.text, serializer);
    }
}

impl SseEncode for crate::HierarchicalBlock {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.text, serializer);
        <f64>::sse_encode(self.font_size, serializer);
        <String>::sse_encode(self.level, serializer);
        <Option<Vec<f64>>>::sse_encode(self.bbox, serializer);
    }
}

impl SseEncode for crate::HierarchyConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.enabled, serializer);
        <i64>::sse_encode(self.k_clusters, serializer);
        <bool>::sse_encode(self.include_bbox, serializer);
        <Option<f64>>::sse_encode(self.ocr_coverage_threshold, serializer);
    }
}

impl SseEncode for crate::HtmlMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Option<String>>::sse_encode(self.title, serializer);
        <Option<String>>::sse_encode(self.description, serializer);
        <Vec<String>>::sse_encode(self.keywords, serializer);
        <Option<String>>::sse_encode(self.author, serializer);
        <Option<String>>::sse_encode(self.canonical_url, serializer);
        <Option<String>>::sse_encode(self.base_href, serializer);
        <Option<String>>::sse_encode(self.language, serializer);
        <Option<crate::TextDirection>>::sse_encode(self.text_direction, serializer);
        <std::collections::HashMap<String, String>>::sse_encode(self.open_graph, serializer);
        <std::collections::HashMap<String, String>>::sse_encode(self.twitter_card, serializer);
        <std::collections::HashMap<String, String>>::sse_encode(self.meta_tags, serializer);
        <Vec<crate::HeaderMetadata>>::sse_encode(self.headers, serializer);
        <Vec<crate::LinkMetadata>>::sse_encode(self.links, serializer);
        <Vec<crate::ImageMetadataType>>::sse_encode(self.images, serializer);
        <Vec<crate::StructuredData>>::sse_encode(self.structured_data, serializer);
    }
}

impl SseEncode for crate::HtmlOutputConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Option<String>>::sse_encode(self.css, serializer);
        <Option<String>>::sse_encode(self.css_file, serializer);
        <crate::HtmlTheme>::sse_encode(self.theme, serializer);
        <String>::sse_encode(self.class_prefix, serializer);
        <bool>::sse_encode(self.embed_css, serializer);
    }
}

impl SseEncode for crate::HtmlTheme {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::HtmlTheme::Default => 0,
                crate::HtmlTheme::GitHub => 1,
                crate::HtmlTheme::Dark => 2,
                crate::HtmlTheme::Light => 3,
                crate::HtmlTheme::Unstyled => 4,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for i32 {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        serializer.cursor.write_i32::<NativeEndian>(self).unwrap();
    }
}

impl SseEncode for i64 {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        serializer.cursor.write_i64::<NativeEndian>(self).unwrap();
    }
}

impl SseEncode for crate::ImageExtractionConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.extract_images, serializer);
        <i64>::sse_encode(self.target_dpi, serializer);
        <i64>::sse_encode(self.max_image_dimension, serializer);
        <bool>::sse_encode(self.inject_placeholders, serializer);
        <bool>::sse_encode(self.auto_adjust_dpi, serializer);
        <i64>::sse_encode(self.min_dpi, serializer);
        <i64>::sse_encode(self.max_dpi, serializer);
        <Option<i64>>::sse_encode(self.max_images_per_page, serializer);
        <bool>::sse_encode(self.classify, serializer);
        <bool>::sse_encode(self.include_page_rasters, serializer);
        <bool>::sse_encode(self.run_ocr_on_images, serializer);
        <bool>::sse_encode(self.ocr_text_only, serializer);
        <bool>::sse_encode(self.append_ocr_text, serializer);
    }
}

impl SseEncode for crate::ImageKind {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::ImageKind::Photograph => 0,
                crate::ImageKind::Diagram => 1,
                crate::ImageKind::Chart => 2,
                crate::ImageKind::Drawing => 3,
                crate::ImageKind::TextBlock => 4,
                crate::ImageKind::Decoration => 5,
                crate::ImageKind::Logo => 6,
                crate::ImageKind::Icon => 7,
                crate::ImageKind::TileFragment => 8,
                crate::ImageKind::Mask => 9,
                crate::ImageKind::PageRaster => 10,
                crate::ImageKind::Unknown => 11,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::ImageMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.width, serializer);
        <i64>::sse_encode(self.height, serializer);
        <String>::sse_encode(self.format, serializer);
        <std::collections::HashMap<String, String>>::sse_encode(self.exif, serializer);
    }
}

impl SseEncode for crate::ImageMetadataType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.src, serializer);
        <Option<String>>::sse_encode(self.alt, serializer);
        <Option<String>>::sse_encode(self.title, serializer);
        <Option<Vec<i64>>>::sse_encode(self.dimensions, serializer);
        <crate::ImageType>::sse_encode(self.image_type, serializer);
        <Vec<Vec<String>>>::sse_encode(self.attributes, serializer);
    }
}

impl SseEncode for crate::ImagePreprocessingConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.target_dpi, serializer);
        <bool>::sse_encode(self.auto_rotate, serializer);
        <bool>::sse_encode(self.deskew, serializer);
        <bool>::sse_encode(self.denoise, serializer);
        <bool>::sse_encode(self.contrast_enhance, serializer);
        <String>::sse_encode(self.binarization_method, serializer);
        <bool>::sse_encode(self.invert_colors, serializer);
    }
}

impl SseEncode for crate::ImagePreprocessingMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Vec<i64>>::sse_encode(self.original_dimensions, serializer);
        <Vec<f64>>::sse_encode(self.original_dpi, serializer);
        <i64>::sse_encode(self.target_dpi, serializer);
        <f64>::sse_encode(self.scale_factor, serializer);
        <bool>::sse_encode(self.auto_adjusted, serializer);
        <i64>::sse_encode(self.final_dpi, serializer);
        <Option<Vec<i64>>>::sse_encode(self.new_dimensions, serializer);
        <String>::sse_encode(self.resample_method, serializer);
        <bool>::sse_encode(self.dimension_clamped, serializer);
        <Option<i64>>::sse_encode(self.calculated_dpi, serializer);
        <bool>::sse_encode(self.skipped_resize, serializer);
        <Option<String>>::sse_encode(self.resize_error, serializer);
    }
}

impl SseEncode for crate::ImageType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::ImageType::DataUri => 0,
                crate::ImageType::InlineSvg => 1,
                crate::ImageType::External => 2,
                crate::ImageType::Relative => 3,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::InlineElement {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <crate::InlineType>::sse_encode(self.element_type, serializer);
        <String>::sse_encode(self.content, serializer);
        <Option<String>>::sse_encode(self.attributes, serializer);
        <Option<std::collections::HashMap<String, String>>>::sse_encode(self.metadata, serializer);
    }
}

impl SseEncode for crate::InlineType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::InlineType::Text => 0,
                crate::InlineType::Strong => 1,
                crate::InlineType::Emphasis => 2,
                crate::InlineType::Highlight => 3,
                crate::InlineType::Subscript => 4,
                crate::InlineType::Superscript => 5,
                crate::InlineType::Insert => 6,
                crate::InlineType::Delete => 7,
                crate::InlineType::Code => 8,
                crate::InlineType::Link => 9,
                crate::InlineType::Image => 10,
                crate::InlineType::Span => 11,
                crate::InlineType::Math => 12,
                crate::InlineType::RawInline => 13,
                crate::InlineType::FootnoteRef => 14,
                crate::InlineType::Symbol => 15,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::InternalDocumentBridge {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.json, serializer);
    }
}

impl SseEncode for isize {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        serializer.cursor.write_i64::<NativeEndian>(self as _).unwrap();
    }
}

impl SseEncode for crate::JatsMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Option<String>>::sse_encode(self.copyright, serializer);
        <Option<String>>::sse_encode(self.license, serializer);
        <std::collections::HashMap<String, String>>::sse_encode(self.history_dates, serializer);
        <Vec<crate::ContributorRole>>::sse_encode(self.contributor_roles, serializer);
    }
}

impl SseEncode for crate::Keyword {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.text, serializer);
        <f64>::sse_encode(self.score, serializer);
        <crate::KeywordAlgorithm>::sse_encode(self.algorithm, serializer);
        <Option<Vec<i64>>>::sse_encode(self.positions, serializer);
    }
}

impl SseEncode for crate::KeywordAlgorithm {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::KeywordAlgorithm::Yake => 0,
                crate::KeywordAlgorithm::Rake => 1,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::KeywordConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <crate::KeywordAlgorithm>::sse_encode(self.algorithm, serializer);
        <i64>::sse_encode(self.max_keywords, serializer);
        <f64>::sse_encode(self.min_score, serializer);
        <Vec<i64>>::sse_encode(self.ngram_range, serializer);
        <Option<String>>::sse_encode(self.language, serializer);
        <Option<crate::YakeParams>>::sse_encode(self.yake_params, serializer);
        <Option<crate::RakeParams>>::sse_encode(self.rake_params, serializer);
    }
}

impl SseEncode for crate::LanguageDetectionConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.enabled, serializer);
        <f64>::sse_encode(self.min_confidence, serializer);
        <bool>::sse_encode(self.detect_multiple, serializer);
    }
}

impl SseEncode for crate::LayoutClass {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::LayoutClass::Caption => 0,
                crate::LayoutClass::Footnote => 1,
                crate::LayoutClass::Formula => 2,
                crate::LayoutClass::ListItem => 3,
                crate::LayoutClass::PageFooter => 4,
                crate::LayoutClass::PageHeader => 5,
                crate::LayoutClass::Picture => 6,
                crate::LayoutClass::SectionHeader => 7,
                crate::LayoutClass::Table => 8,
                crate::LayoutClass::Text => 9,
                crate::LayoutClass::Title => 10,
                crate::LayoutClass::DocumentIndex => 11,
                crate::LayoutClass::Code => 12,
                crate::LayoutClass::CheckboxSelected => 13,
                crate::LayoutClass::CheckboxUnselected => 14,
                crate::LayoutClass::Form => 15,
                crate::LayoutClass::KeyValueRegion => 16,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::LayoutDetection {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <crate::LayoutClass>::sse_encode(self.class_name, serializer);
        <f64>::sse_encode(self.confidence, serializer);
        <crate::BBox>::sse_encode(self.bbox, serializer);
    }
}

impl SseEncode for crate::LayoutDetectionConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Option<f64>>::sse_encode(self.confidence_threshold, serializer);
        <bool>::sse_encode(self.apply_heuristics, serializer);
        <crate::TableModel>::sse_encode(self.table_model, serializer);
        <Option<crate::AccelerationConfig>>::sse_encode(self.acceleration, serializer);
    }
}

impl SseEncode for crate::LayoutRegion {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.class_name, serializer);
        <f64>::sse_encode(self.confidence, serializer);
        <crate::BoundingBox>::sse_encode(self.bounding_box, serializer);
        <f64>::sse_encode(self.area_fraction, serializer);
    }
}

impl SseEncode for crate::LinkMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.href, serializer);
        <String>::sse_encode(self.text, serializer);
        <Option<String>>::sse_encode(self.title, serializer);
        <crate::LinkType>::sse_encode(self.link_type, serializer);
        <Vec<String>>::sse_encode(self.rel, serializer);
        <Vec<Vec<String>>>::sse_encode(self.attributes, serializer);
    }
}

impl SseEncode for crate::LinkType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::LinkType::Anchor => 0,
                crate::LinkType::Internal => 1,
                crate::LinkType::External => 2,
                crate::LinkType::Email => 3,
                crate::LinkType::Phone => 4,
                crate::LinkType::Other => 5,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for Vec<String> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <String>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::ArchiveEntry> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::ArchiveEntry>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::BatchBytesItem> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::BatchBytesItem>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::BatchFileItem> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::BatchFileItem>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::CellChange> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::CellChange>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::Chunk> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::Chunk>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::ContributorRole> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::ContributorRole>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::DbfFieldInfo> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::DbfFieldInfo>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::DiffHunk> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::DiffHunk>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::DiffLine> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::DiffLine>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::DjotImage> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::DjotImage>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::DjotLink> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::DjotLink>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::DocumentNode> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::DocumentNode>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::DocumentRelationship> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::DocumentRelationship>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::DocumentRevision> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::DocumentRevision>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::Element> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::Element>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::EmailAttachment> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::EmailAttachment>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::EmbeddedDiff> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::EmbeddedDiff>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::ExcelSheet> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::ExcelSheet>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::ExtractedImage> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::ExtractedImage>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::ExtractedUri> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::ExtractedUri>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::ExtractionResult> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::ExtractionResult>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::Footnote> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::Footnote>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::FormattedBlock> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::FormattedBlock>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::GridCell> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::GridCell>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::HeaderMetadata> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::HeaderMetadata>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::HeadingLevel> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::HeadingLevel>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::HierarchicalBlock> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::HierarchicalBlock>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::ImageMetadataType> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::ImageMetadataType>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::InlineElement> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::InlineElement>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::Keyword> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::Keyword>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::LayoutDetection> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::LayoutDetection>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::LayoutRegion> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::LayoutRegion>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::LinkMetadata> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::LinkMetadata>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<Vec<String>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <Vec<String>>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<Vec<f64>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <Vec<f64>>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::LlmUsage> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::LlmUsage>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::OcrElement> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::OcrElement>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::OcrPipelineStage> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::OcrPipelineStage>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::OcrTable> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::OcrTable>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::PageBoundary> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::PageBoundary>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::PageContent> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::PageContent>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::PageInfo> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::PageInfo>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::PdfAnnotation> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::PdfAnnotation>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<f64> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <f64>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<i64> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <i64>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<u8> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <u8>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::ProcessingWarning> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::ProcessingWarning>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<(String, i64)> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <(String, i64)>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<(String, Vec<u8>)> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <(String, Vec<u8>)>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<(String, Vec<String>)> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <(String, Vec<String>)>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<(String, String)> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <(String, String)>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::StructuredData> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::StructuredData>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::Table> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::Table>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::TableDiff> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::TableDiff>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for Vec<crate::TextAnnotation> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(self.len() as _, serializer);
        for item in self {
            <crate::TextAnnotation>::sse_encode(item, serializer);
        }
    }
}

impl SseEncode for crate::LlmConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.model, serializer);
        <Option<String>>::sse_encode(self.api_key, serializer);
        <Option<String>>::sse_encode(self.base_url, serializer);
        <Option<i64>>::sse_encode(self.timeout_secs, serializer);
        <Option<i64>>::sse_encode(self.max_retries, serializer);
        <Option<f64>>::sse_encode(self.temperature, serializer);
        <Option<i64>>::sse_encode(self.max_tokens, serializer);
    }
}

impl SseEncode for crate::LlmUsage {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.model, serializer);
        <String>::sse_encode(self.source, serializer);
        <Option<i64>>::sse_encode(self.input_tokens, serializer);
        <Option<i64>>::sse_encode(self.output_tokens, serializer);
        <Option<i64>>::sse_encode(self.total_tokens, serializer);
        <Option<f64>>::sse_encode(self.estimated_cost, serializer);
        <Option<String>>::sse_encode(self.finish_reason, serializer);
    }
}

impl SseEncode for crate::Metadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Option<String>>::sse_encode(self.title, serializer);
        <Option<String>>::sse_encode(self.subject, serializer);
        <Option<Vec<String>>>::sse_encode(self.authors, serializer);
        <Option<Vec<String>>>::sse_encode(self.keywords, serializer);
        <Option<String>>::sse_encode(self.language, serializer);
        <Option<String>>::sse_encode(self.created_at, serializer);
        <Option<String>>::sse_encode(self.modified_at, serializer);
        <Option<String>>::sse_encode(self.created_by, serializer);
        <Option<String>>::sse_encode(self.modified_by, serializer);
        <Option<crate::PageStructure>>::sse_encode(self.pages, serializer);
        <Option<crate::FormatMetadata>>::sse_encode(self.format, serializer);
        <Option<crate::ImagePreprocessingMetadata>>::sse_encode(self.image_preprocessing, serializer);
        <Option<String>>::sse_encode(self.json_schema, serializer);
        <Option<crate::ErrorMetadata>>::sse_encode(self.error, serializer);
        <Option<i64>>::sse_encode(self.extraction_duration_ms, serializer);
        <Option<String>>::sse_encode(self.category, serializer);
        <Option<Vec<String>>>::sse_encode(self.tags, serializer);
        <Option<String>>::sse_encode(self.document_version, serializer);
        <Option<String>>::sse_encode(self.abstract_text, serializer);
        <Option<String>>::sse_encode(self.output_format, serializer);
        <bool>::sse_encode(self.ocr_used, serializer);
        <std::collections::HashMap<String, String>>::sse_encode(self.additional, serializer);
    }
}

impl SseEncode for crate::ModelPaths {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.det_model, serializer);
        <String>::sse_encode(self.cls_model, serializer);
        <String>::sse_encode(self.rec_model, serializer);
        <String>::sse_encode(self.dict_file, serializer);
    }
}

impl SseEncode for crate::NodeContent {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        match self {
            crate::NodeContent::Title { text } => {
                <i32>::sse_encode(0, serializer);
                <String>::sse_encode(text, serializer);
            }
            crate::NodeContent::Heading { level, text } => {
                <i32>::sse_encode(1, serializer);
                <i64>::sse_encode(level, serializer);
                <String>::sse_encode(text, serializer);
            }
            crate::NodeContent::Paragraph { text } => {
                <i32>::sse_encode(2, serializer);
                <String>::sse_encode(text, serializer);
            }
            crate::NodeContent::List { ordered } => {
                <i32>::sse_encode(3, serializer);
                <bool>::sse_encode(ordered, serializer);
            }
            crate::NodeContent::ListItem { text } => {
                <i32>::sse_encode(4, serializer);
                <String>::sse_encode(text, serializer);
            }
            crate::NodeContent::Table { grid } => {
                <i32>::sse_encode(5, serializer);
                <crate::TableGrid>::sse_encode(grid, serializer);
            }
            crate::NodeContent::Image {
                description,
                image_index,
                src,
            } => {
                <i32>::sse_encode(6, serializer);
                <String>::sse_encode(description, serializer);
                <i64>::sse_encode(image_index, serializer);
                <String>::sse_encode(src, serializer);
            }
            crate::NodeContent::Code { text, language } => {
                <i32>::sse_encode(7, serializer);
                <String>::sse_encode(text, serializer);
                <String>::sse_encode(language, serializer);
            }
            crate::NodeContent::Quote => {
                <i32>::sse_encode(8, serializer);
            }
            crate::NodeContent::Formula { text } => {
                <i32>::sse_encode(9, serializer);
                <String>::sse_encode(text, serializer);
            }
            crate::NodeContent::Footnote { text } => {
                <i32>::sse_encode(10, serializer);
                <String>::sse_encode(text, serializer);
            }
            crate::NodeContent::Group {
                label,
                heading_level,
                heading_text,
            } => {
                <i32>::sse_encode(11, serializer);
                <String>::sse_encode(label, serializer);
                <i64>::sse_encode(heading_level, serializer);
                <String>::sse_encode(heading_text, serializer);
            }
            crate::NodeContent::PageBreak => {
                <i32>::sse_encode(12, serializer);
            }
            crate::NodeContent::Slide { number, title } => {
                <i32>::sse_encode(13, serializer);
                <i64>::sse_encode(number, serializer);
                <String>::sse_encode(title, serializer);
            }
            crate::NodeContent::DefinitionList => {
                <i32>::sse_encode(14, serializer);
            }
            crate::NodeContent::DefinitionItem { term, definition } => {
                <i32>::sse_encode(15, serializer);
                <String>::sse_encode(term, serializer);
                <String>::sse_encode(definition, serializer);
            }
            crate::NodeContent::Citation { key, text } => {
                <i32>::sse_encode(16, serializer);
                <String>::sse_encode(key, serializer);
                <String>::sse_encode(text, serializer);
            }
            crate::NodeContent::Admonition { kind, title } => {
                <i32>::sse_encode(17, serializer);
                <String>::sse_encode(kind, serializer);
                <String>::sse_encode(title, serializer);
            }
            crate::NodeContent::RawBlock { format, content } => {
                <i32>::sse_encode(18, serializer);
                <String>::sse_encode(format, serializer);
                <String>::sse_encode(content, serializer);
            }
            crate::NodeContent::MetadataBlock { entries } => {
                <i32>::sse_encode(19, serializer);
                <Vec<Vec<String>>>::sse_encode(entries, serializer);
            }
            _ => {
                unimplemented!("");
            }
        }
    }
}

impl SseEncode for crate::OcrBackendType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::OcrBackendType::Tesseract => 0,
                crate::OcrBackendType::EasyOCR => 1,
                crate::OcrBackendType::PaddleOCR => 2,
                crate::OcrBackendType::Custom => 3,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::OcrBoundingGeometry {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        match self {
            crate::OcrBoundingGeometry::Rectangle {
                left,
                top,
                width,
                height,
            } => {
                <i32>::sse_encode(0, serializer);
                <i64>::sse_encode(left, serializer);
                <i64>::sse_encode(top, serializer);
                <i64>::sse_encode(width, serializer);
                <i64>::sse_encode(height, serializer);
            }
            crate::OcrBoundingGeometry::Quadrilateral { points } => {
                <i32>::sse_encode(1, serializer);
                <String>::sse_encode(points, serializer);
            }
            _ => {
                unimplemented!("");
            }
        }
    }
}

impl SseEncode for crate::OcrConfidence {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Option<f64>>::sse_encode(self.detection, serializer);
        <f64>::sse_encode(self.recognition, serializer);
    }
}

impl SseEncode for crate::OcrConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.enabled, serializer);
        <String>::sse_encode(self.backend, serializer);
        <String>::sse_encode(self.language, serializer);
        <Option<crate::TesseractConfig>>::sse_encode(self.tesseract_config, serializer);
        <Option<crate::OutputFormat>>::sse_encode(self.output_format, serializer);
        <Option<String>>::sse_encode(self.paddle_ocr_config, serializer);
        <Option<String>>::sse_encode(self.backend_options, serializer);
        <Option<crate::OcrElementConfig>>::sse_encode(self.element_config, serializer);
        <Option<crate::OcrQualityThresholds>>::sse_encode(self.quality_thresholds, serializer);
        <Option<crate::OcrPipelineConfig>>::sse_encode(self.pipeline, serializer);
        <bool>::sse_encode(self.auto_rotate, serializer);
        <Option<crate::LlmConfig>>::sse_encode(self.vlm_config, serializer);
        <Option<String>>::sse_encode(self.vlm_prompt, serializer);
        <Option<crate::AccelerationConfig>>::sse_encode(self.acceleration, serializer);
        <Option<std::collections::HashMap<String, Vec<u8>>>>::sse_encode(self.tessdata_bytes, serializer);
    }
}

impl SseEncode for crate::OcrElement {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.text, serializer);
        <crate::OcrBoundingGeometry>::sse_encode(self.geometry, serializer);
        <crate::OcrConfidence>::sse_encode(self.confidence, serializer);
        <crate::OcrElementLevel>::sse_encode(self.level, serializer);
        <Option<crate::OcrRotation>>::sse_encode(self.rotation, serializer);
        <i64>::sse_encode(self.page_number, serializer);
        <Option<String>>::sse_encode(self.parent_id, serializer);
        <std::collections::HashMap<String, String>>::sse_encode(self.backend_metadata, serializer);
    }
}

impl SseEncode for crate::OcrElementConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.include_elements, serializer);
        <crate::OcrElementLevel>::sse_encode(self.min_level, serializer);
        <f64>::sse_encode(self.min_confidence, serializer);
        <bool>::sse_encode(self.build_hierarchy, serializer);
    }
}

impl SseEncode for crate::OcrElementLevel {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::OcrElementLevel::Word => 0,
                crate::OcrElementLevel::Line => 1,
                crate::OcrElementLevel::Block => 2,
                crate::OcrElementLevel::Page => 3,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::OcrExtractionResult {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.content, serializer);
        <String>::sse_encode(self.mime_type, serializer);
        <std::collections::HashMap<String, String>>::sse_encode(self.metadata, serializer);
        <Vec<crate::OcrTable>>::sse_encode(self.tables, serializer);
        <Option<Vec<crate::OcrElement>>>::sse_encode(self.ocr_elements, serializer);
        <Option<String>>::sse_encode(self.internal_document, serializer);
    }
}

impl SseEncode for crate::OcrMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.language, serializer);
        <i64>::sse_encode(self.psm, serializer);
        <String>::sse_encode(self.output_format, serializer);
        <i64>::sse_encode(self.table_count, serializer);
        <Option<i64>>::sse_encode(self.table_rows, serializer);
        <Option<i64>>::sse_encode(self.table_cols, serializer);
    }
}

impl SseEncode for crate::OcrPipelineConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Vec<crate::OcrPipelineStage>>::sse_encode(self.stages, serializer);
        <crate::OcrQualityThresholds>::sse_encode(self.quality_thresholds, serializer);
    }
}

impl SseEncode for crate::OcrPipelineStage {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.backend, serializer);
        <i64>::sse_encode(self.priority, serializer);
        <Option<String>>::sse_encode(self.language, serializer);
        <Option<crate::TesseractConfig>>::sse_encode(self.tesseract_config, serializer);
        <Option<String>>::sse_encode(self.paddle_ocr_config, serializer);
        <Option<crate::LlmConfig>>::sse_encode(self.vlm_config, serializer);
        <Option<String>>::sse_encode(self.backend_options, serializer);
    }
}

impl SseEncode for crate::OcrQualityThresholds {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.min_total_non_whitespace, serializer);
        <f64>::sse_encode(self.min_non_whitespace_per_page, serializer);
        <i64>::sse_encode(self.min_meaningful_word_len, serializer);
        <i64>::sse_encode(self.min_meaningful_words, serializer);
        <f64>::sse_encode(self.min_alnum_ratio, serializer);
        <i64>::sse_encode(self.min_garbage_chars, serializer);
        <f64>::sse_encode(self.max_fragmented_word_ratio, serializer);
        <f64>::sse_encode(self.critical_fragmented_word_ratio, serializer);
        <f64>::sse_encode(self.min_avg_word_length, serializer);
        <i64>::sse_encode(self.min_words_for_avg_length_check, serializer);
        <f64>::sse_encode(self.min_consecutive_repeat_ratio, serializer);
        <i64>::sse_encode(self.min_words_for_repeat_check, serializer);
        <i64>::sse_encode(self.substantive_min_chars, serializer);
        <i64>::sse_encode(self.non_text_min_chars, serializer);
        <f64>::sse_encode(self.alnum_ws_ratio_threshold, serializer);
        <f64>::sse_encode(self.pipeline_min_quality, serializer);
    }
}

impl SseEncode for crate::OcrRotation {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <f64>::sse_encode(self.angle_degrees, serializer);
        <Option<f64>>::sse_encode(self.confidence, serializer);
    }
}

impl SseEncode for crate::OcrTable {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Vec<Vec<String>>>::sse_encode(self.cells, serializer);
        <String>::sse_encode(self.markdown, serializer);
        <i64>::sse_encode(self.page_number, serializer);
        <Option<crate::OcrTableBoundingBox>>::sse_encode(self.bounding_box, serializer);
    }
}

impl SseEncode for crate::OcrTableBoundingBox {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.left, serializer);
        <i64>::sse_encode(self.top, serializer);
        <i64>::sse_encode(self.right, serializer);
        <i64>::sse_encode(self.bottom, serializer);
    }
}

impl SseEncode for Option<std::collections::HashMap<String, String>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <std::collections::HashMap<String, String>>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<std::collections::HashMap<String, i64>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <std::collections::HashMap<String, i64>>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<std::collections::HashMap<String, Vec<String>>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <std::collections::HashMap<String, Vec<String>>>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<std::collections::HashMap<String, Vec<u8>>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <std::collections::HashMap<String, Vec<u8>>>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<String> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <String>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::AccelerationConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::AccelerationConfig>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<bool> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <bool>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::BoundingBox> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::BoundingBox>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::ChunkingConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::ChunkingConfig>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::ContentFilterConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::ContentFilterConfig>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::CoreProperties> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::CoreProperties>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::DjotContent> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::DjotContent>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::DocumentStructure> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::DocumentStructure>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::DocxAppProperties> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::DocxAppProperties>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::EmailConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::EmailConfig>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::EmbeddingConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::EmbeddingConfig>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::EmbeddingPreset> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::EmbeddingPreset>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::ErrorMetadata> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::ErrorMetadata>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::ExtractionMethod> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::ExtractionMethod>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::ExtractionResult> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::ExtractionResult>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<f64> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <f64>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::FileExtractionConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::FileExtractionConfig>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::FormatMetadata> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::FormatMetadata>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::HeadingContext> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::HeadingContext>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::HierarchyConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::HierarchyConfig>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::HtmlOutputConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::HtmlOutputConfig>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<i64> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <i64>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::ImageExtractionConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::ImageExtractionConfig>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::ImageKind> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::ImageKind>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::ImagePreprocessingConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::ImagePreprocessingConfig>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::ImagePreprocessingMetadata> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::ImagePreprocessingMetadata>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::KeywordConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::KeywordConfig>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::LanguageDetectionConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::LanguageDetectionConfig>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::LayoutDetectionConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::LayoutDetectionConfig>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::LlmConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::LlmConfig>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::OcrConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::OcrConfig>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::OcrElementConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::OcrElementConfig>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::OcrPipelineConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::OcrPipelineConfig>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::OcrQualityThresholds> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::OcrQualityThresholds>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::OcrRotation> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::OcrRotation>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::OcrTableBoundingBox> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::OcrTableBoundingBox>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::OutputFormat> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::OutputFormat>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::PageConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::PageConfig>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::PageHierarchy> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::PageHierarchy>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::PageStructure> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::PageStructure>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::PdfConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::PdfConfig>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::PostProcessorConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::PostProcessorConfig>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::RakeParams> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::RakeParams>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::ResultFormat> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::ResultFormat>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::RevisionAnchor> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::RevisionAnchor>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::SecurityLimits> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::SecurityLimits>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::StructuredExtractionConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::StructuredExtractionConfig>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::TesseractConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::TesseractConfig>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::TextDirection> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::TextDirection>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::TokenReductionOptions> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::TokenReductionOptions>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::TreeSitterConfig> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::TreeSitterConfig>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::YakeParams> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::YakeParams>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<crate::YearRange> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <crate::YearRange>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<Vec<String>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <Vec<String>>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<Vec<crate::ArchiveEntry>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <Vec<crate::ArchiveEntry>>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<Vec<crate::Chunk>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <Vec<crate::Chunk>>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<Vec<crate::DocumentRevision>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <Vec<crate::DocumentRevision>>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<Vec<crate::Element>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <Vec<crate::Element>>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<Vec<crate::ExtractedImage>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <Vec<crate::ExtractedImage>>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<Vec<crate::ExtractedUri>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <Vec<crate::ExtractedUri>>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<Vec<crate::Keyword>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <Vec<crate::Keyword>>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<Vec<crate::LayoutRegion>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <Vec<crate::LayoutRegion>>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<Vec<Vec<String>>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <Vec<Vec<String>>>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<Vec<crate::LlmUsage>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <Vec<crate::LlmUsage>>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<Vec<crate::OcrElement>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <Vec<crate::OcrElement>>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<Vec<crate::PageBoundary>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <Vec<crate::PageBoundary>>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<Vec<crate::PageContent>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <Vec<crate::PageContent>>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<Vec<crate::PageInfo>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <Vec<crate::PageInfo>>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<Vec<crate::PdfAnnotation>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <Vec<crate::PdfAnnotation>>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<Vec<f64>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <Vec<f64>>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<Vec<i64>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <Vec<i64>>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for Option<Vec<u8>> {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.is_some(), serializer);
        if let Some(value) = self {
            <Vec<u8>>::sse_encode(value, serializer);
        }
    }
}

impl SseEncode for crate::OrientationResult {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.degrees, serializer);
        <f64>::sse_encode(self.confidence, serializer);
    }
}

impl SseEncode for crate::OutputFormat {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        match self {
            crate::OutputFormat::Plain => {
                <i32>::sse_encode(0, serializer);
            }
            crate::OutputFormat::Markdown => {
                <i32>::sse_encode(1, serializer);
            }
            crate::OutputFormat::Djot => {
                <i32>::sse_encode(2, serializer);
            }
            crate::OutputFormat::Html => {
                <i32>::sse_encode(3, serializer);
            }
            crate::OutputFormat::Json => {
                <i32>::sse_encode(4, serializer);
            }
            crate::OutputFormat::Structured => {
                <i32>::sse_encode(5, serializer);
            }
            crate::OutputFormat::Custom { field0 } => {
                <i32>::sse_encode(6, serializer);
                <String>::sse_encode(field0, serializer);
            }
            _ => {
                unimplemented!("");
            }
        }
    }
}

impl SseEncode for crate::PaddleOcrConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.language, serializer);
        <Option<String>>::sse_encode(self.cache_dir, serializer);
        <bool>::sse_encode(self.use_angle_cls, serializer);
        <bool>::sse_encode(self.enable_table_detection, serializer);
        <f64>::sse_encode(self.det_db_thresh, serializer);
        <f64>::sse_encode(self.det_db_box_thresh, serializer);
        <f64>::sse_encode(self.det_db_unclip_ratio, serializer);
        <i64>::sse_encode(self.det_limit_side_len, serializer);
        <i64>::sse_encode(self.rec_batch_num, serializer);
        <i64>::sse_encode(self.padding, serializer);
        <f64>::sse_encode(self.drop_score, serializer);
        <String>::sse_encode(self.model_tier, serializer);
    }
}

impl SseEncode for crate::PageBoundary {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.byte_start, serializer);
        <i64>::sse_encode(self.byte_end, serializer);
        <i64>::sse_encode(self.page_number, serializer);
    }
}

impl SseEncode for crate::PageConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.extract_pages, serializer);
        <bool>::sse_encode(self.insert_page_markers, serializer);
        <String>::sse_encode(self.marker_format, serializer);
    }
}

impl SseEncode for crate::PageContent {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.page_number, serializer);
        <String>::sse_encode(self.content, serializer);
        <Vec<crate::Table>>::sse_encode(self.tables, serializer);
        <Vec<i64>>::sse_encode(self.image_indices, serializer);
        <Option<crate::PageHierarchy>>::sse_encode(self.hierarchy, serializer);
        <Option<bool>>::sse_encode(self.is_blank, serializer);
        <Option<Vec<crate::LayoutRegion>>>::sse_encode(self.layout_regions, serializer);
        <Option<String>>::sse_encode(self.speaker_notes, serializer);
        <Option<String>>::sse_encode(self.section_name, serializer);
        <Option<String>>::sse_encode(self.sheet_name, serializer);
    }
}

impl SseEncode for crate::PageHierarchy {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.block_count, serializer);
        <Vec<crate::HierarchicalBlock>>::sse_encode(self.blocks, serializer);
    }
}

impl SseEncode for crate::PageInfo {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.number, serializer);
        <Option<String>>::sse_encode(self.title, serializer);
        <Option<Vec<f64>>>::sse_encode(self.dimensions, serializer);
        <Option<i64>>::sse_encode(self.image_count, serializer);
        <Option<i64>>::sse_encode(self.table_count, serializer);
        <Option<bool>>::sse_encode(self.hidden, serializer);
        <Option<bool>>::sse_encode(self.is_blank, serializer);
        <bool>::sse_encode(self.has_vector_graphics, serializer);
    }
}

impl SseEncode for crate::PageStructure {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.total_count, serializer);
        <crate::PageUnitType>::sse_encode(self.unit_type, serializer);
        <Option<Vec<crate::PageBoundary>>>::sse_encode(self.boundaries, serializer);
        <Option<Vec<crate::PageInfo>>>::sse_encode(self.pages, serializer);
    }
}

impl SseEncode for crate::PageUnitType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::PageUnitType::Page => 0,
                crate::PageUnitType::Slide => 1,
                crate::PageUnitType::Sheet => 2,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::PdfAnnotation {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <crate::PdfAnnotationType>::sse_encode(self.annotation_type, serializer);
        <Option<String>>::sse_encode(self.content, serializer);
        <i64>::sse_encode(self.page_number, serializer);
        <Option<crate::BoundingBox>>::sse_encode(self.bounding_box, serializer);
    }
}

impl SseEncode for crate::PdfAnnotationType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::PdfAnnotationType::Text => 0,
                crate::PdfAnnotationType::Highlight => 1,
                crate::PdfAnnotationType::Link => 2,
                crate::PdfAnnotationType::Stamp => 3,
                crate::PdfAnnotationType::Underline => 4,
                crate::PdfAnnotationType::StrikeOut => 5,
                crate::PdfAnnotationType::Other => 6,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::PdfConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.extract_images, serializer);
        <bool>::sse_encode(self.extract_tables, serializer);
        <Option<Vec<String>>>::sse_encode(self.passwords, serializer);
        <bool>::sse_encode(self.extract_metadata, serializer);
        <Option<crate::HierarchyConfig>>::sse_encode(self.hierarchy, serializer);
        <bool>::sse_encode(self.extract_annotations, serializer);
        <Option<f64>>::sse_encode(self.top_margin_fraction, serializer);
        <Option<f64>>::sse_encode(self.bottom_margin_fraction, serializer);
        <bool>::sse_encode(self.allow_single_column_tables, serializer);
        <bool>::sse_encode(self.ocr_inline_images, serializer);
    }
}

impl SseEncode for crate::PdfMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Option<String>>::sse_encode(self.pdf_version, serializer);
        <Option<String>>::sse_encode(self.producer, serializer);
        <Option<bool>>::sse_encode(self.is_encrypted, serializer);
        <Option<i64>>::sse_encode(self.width, serializer);
        <Option<i64>>::sse_encode(self.height, serializer);
        <Option<i64>>::sse_encode(self.page_count, serializer);
    }
}

impl SseEncode for crate::PostProcessorConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.enabled, serializer);
        <Option<Vec<String>>>::sse_encode(self.enabled_processors, serializer);
        <Option<Vec<String>>>::sse_encode(self.disabled_processors, serializer);
        <Option<Vec<String>>>::sse_encode(self.enabled_set, serializer);
        <Option<Vec<String>>>::sse_encode(self.disabled_set, serializer);
    }
}

impl SseEncode for crate::PptxAppProperties {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Option<String>>::sse_encode(self.application, serializer);
        <Option<String>>::sse_encode(self.app_version, serializer);
        <Option<i64>>::sse_encode(self.total_time, serializer);
        <Option<String>>::sse_encode(self.company, serializer);
        <Option<i64>>::sse_encode(self.doc_security, serializer);
        <Option<bool>>::sse_encode(self.scale_crop, serializer);
        <Option<bool>>::sse_encode(self.links_up_to_date, serializer);
        <Option<bool>>::sse_encode(self.shared_doc, serializer);
        <Option<bool>>::sse_encode(self.hyperlinks_changed, serializer);
        <Option<i64>>::sse_encode(self.slides, serializer);
        <Option<i64>>::sse_encode(self.notes, serializer);
        <Option<i64>>::sse_encode(self.hidden_slides, serializer);
        <Option<i64>>::sse_encode(self.multimedia_clips, serializer);
        <Option<String>>::sse_encode(self.presentation_format, serializer);
        <Vec<String>>::sse_encode(self.slide_titles, serializer);
    }
}

impl SseEncode for crate::PptxExtractionResult {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.content, serializer);
        <crate::PptxMetadata>::sse_encode(self.metadata, serializer);
        <i64>::sse_encode(self.slide_count, serializer);
        <i64>::sse_encode(self.image_count, serializer);
        <i64>::sse_encode(self.table_count, serializer);
        <Vec<crate::ExtractedImage>>::sse_encode(self.images, serializer);
        <Option<crate::PageStructure>>::sse_encode(self.page_structure, serializer);
        <Option<Vec<crate::PageContent>>>::sse_encode(self.page_contents, serializer);
        <Option<crate::DocumentStructure>>::sse_encode(self.document, serializer);
        <Vec<String>>::sse_encode(self.hyperlinks, serializer);
        <std::collections::HashMap<String, String>>::sse_encode(self.office_metadata, serializer);
        <Option<Vec<crate::DocumentRevision>>>::sse_encode(self.revisions, serializer);
    }
}

impl SseEncode for crate::PptxMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.slide_count, serializer);
        <Vec<String>>::sse_encode(self.slide_names, serializer);
        <Option<i64>>::sse_encode(self.image_count, serializer);
        <Option<i64>>::sse_encode(self.table_count, serializer);
    }
}

impl SseEncode for crate::ProcessingStage {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::ProcessingStage::Early => 0,
                crate::ProcessingStage::Middle => 1,
                crate::ProcessingStage::Late => 2,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::ProcessingWarning {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.source, serializer);
        <String>::sse_encode(self.message, serializer);
    }
}

impl SseEncode for crate::PstMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.message_count, serializer);
    }
}

impl SseEncode for crate::RakeParams {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.min_word_length, serializer);
        <i64>::sse_encode(self.max_words_per_phrase, serializer);
    }
}

impl SseEncode for crate::RecognizedTable {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <crate::BBox>::sse_encode(self.detection_bbox, serializer);
        <Vec<Vec<String>>>::sse_encode(self.cells, serializer);
        <String>::sse_encode(self.markdown, serializer);
    }
}

impl SseEncode for (String, i64) {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.0, serializer);
        <i64>::sse_encode(self.1, serializer);
    }
}

impl SseEncode for (String, Vec<u8>) {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.0, serializer);
        <Vec<u8>>::sse_encode(self.1, serializer);
    }
}

impl SseEncode for (String, Vec<String>) {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.0, serializer);
        <Vec<String>>::sse_encode(self.1, serializer);
    }
}

impl SseEncode for (String, String) {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.0, serializer);
        <String>::sse_encode(self.1, serializer);
    }
}

impl SseEncode for crate::ReductionLevel {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::ReductionLevel::Off => 0,
                crate::ReductionLevel::Light => 1,
                crate::ReductionLevel::Moderate => 2,
                crate::ReductionLevel::Aggressive => 3,
                crate::ReductionLevel::Maximum => 4,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::RelationshipKind {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::RelationshipKind::FootnoteReference => 0,
                crate::RelationshipKind::CitationReference => 1,
                crate::RelationshipKind::InternalLink => 2,
                crate::RelationshipKind::Caption => 3,
                crate::RelationshipKind::Label => 4,
                crate::RelationshipKind::TocEntry => 5,
                crate::RelationshipKind::CrossReference => 6,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::ResultFormat {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::ResultFormat::Unified => 0,
                crate::ResultFormat::ElementBased => 1,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::RevisionAnchor {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        match self {
            crate::RevisionAnchor::Paragraph { index } => {
                <i32>::sse_encode(0, serializer);
                <i64>::sse_encode(index, serializer);
            }
            crate::RevisionAnchor::TableCell { row, col, table_index } => {
                <i32>::sse_encode(1, serializer);
                <i64>::sse_encode(row, serializer);
                <i64>::sse_encode(col, serializer);
                <i64>::sse_encode(table_index, serializer);
            }
            crate::RevisionAnchor::Page { index } => {
                <i32>::sse_encode(2, serializer);
                <i64>::sse_encode(index, serializer);
            }
            crate::RevisionAnchor::Slide { index } => {
                <i32>::sse_encode(3, serializer);
                <i64>::sse_encode(index, serializer);
            }
            crate::RevisionAnchor::Sheet { index, name } => {
                <i32>::sse_encode(4, serializer);
                <i64>::sse_encode(index, serializer);
                <String>::sse_encode(name, serializer);
            }
            _ => {
                unimplemented!("");
            }
        }
    }
}

impl SseEncode for crate::RevisionDelta {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Vec<crate::DiffLine>>::sse_encode(self.content, serializer);
        <Vec<crate::CellChange>>::sse_encode(self.table_changes, serializer);
    }
}

impl SseEncode for crate::RevisionKind {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::RevisionKind::Insertion => 0,
                crate::RevisionKind::Deletion => 1,
                crate::RevisionKind::FormatChange => 2,
                crate::RevisionKind::Comment => 3,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::SecurityLimits {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.max_archive_size, serializer);
        <i64>::sse_encode(self.max_compression_ratio, serializer);
        <i64>::sse_encode(self.max_files_in_archive, serializer);
        <i64>::sse_encode(self.max_nesting_depth, serializer);
        <i64>::sse_encode(self.max_entity_length, serializer);
        <i64>::sse_encode(self.max_content_size, serializer);
        <i64>::sse_encode(self.max_iterations, serializer);
        <i64>::sse_encode(self.max_xml_depth, serializer);
        <i64>::sse_encode(self.max_table_cells, serializer);
    }
}

impl SseEncode for crate::ServerConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.host, serializer);
        <i64>::sse_encode(self.port, serializer);
        <Vec<String>>::sse_encode(self.cors_origins, serializer);
        <i64>::sse_encode(self.max_request_body_bytes, serializer);
        <i64>::sse_encode(self.max_multipart_field_bytes, serializer);
    }
}

impl SseEncode for crate::StructuredData {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <crate::StructuredDataType>::sse_encode(self.data_type, serializer);
        <String>::sse_encode(self.raw_json, serializer);
        <Option<String>>::sse_encode(self.schema_type, serializer);
    }
}

impl SseEncode for crate::StructuredDataResult {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.content, serializer);
        <String>::sse_encode(self.format, serializer);
        <std::collections::HashMap<String, String>>::sse_encode(self.metadata, serializer);
        <Vec<String>>::sse_encode(self.text_fields, serializer);
    }
}

impl SseEncode for crate::StructuredDataType {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::StructuredDataType::JsonLd => 0,
                crate::StructuredDataType::Microdata => 1,
                crate::StructuredDataType::RDFa => 2,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::StructuredExtractionConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.schema, serializer);
        <String>::sse_encode(self.schema_name, serializer);
        <Option<String>>::sse_encode(self.schema_description, serializer);
        <bool>::sse_encode(self.strict, serializer);
        <Option<String>>::sse_encode(self.prompt, serializer);
        <crate::LlmConfig>::sse_encode(self.llm, serializer);
    }
}

impl SseEncode for crate::SupportedFormat {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.extension, serializer);
        <String>::sse_encode(self.mime_type, serializer);
    }
}

impl SseEncode for crate::Table {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Vec<Vec<String>>>::sse_encode(self.cells, serializer);
        <String>::sse_encode(self.markdown, serializer);
        <i64>::sse_encode(self.page_number, serializer);
        <Option<crate::BoundingBox>>::sse_encode(self.bounding_box, serializer);
    }
}

impl SseEncode for crate::TableCell {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.content, serializer);
        <i64>::sse_encode(self.row_span, serializer);
        <i64>::sse_encode(self.col_span, serializer);
        <bool>::sse_encode(self.is_header, serializer);
    }
}

impl SseEncode for crate::TableDiff {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.from_index, serializer);
        <i64>::sse_encode(self.to_index, serializer);
        <Vec<crate::CellChange>>::sse_encode(self.cell_changes, serializer);
    }
}

impl SseEncode for crate::TableGrid {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.rows, serializer);
        <i64>::sse_encode(self.cols, serializer);
        <Vec<crate::GridCell>>::sse_encode(self.cells, serializer);
    }
}

impl SseEncode for crate::TableModel {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::TableModel::Tatr => 0,
                crate::TableModel::SlanetWired => 1,
                crate::TableModel::SlanetWireless => 2,
                crate::TableModel::SlanetPlus => 3,
                crate::TableModel::SlanetAuto => 4,
                crate::TableModel::Disabled => 5,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::TesseractConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.language, serializer);
        <i64>::sse_encode(self.psm, serializer);
        <String>::sse_encode(self.output_format, serializer);
        <i64>::sse_encode(self.oem, serializer);
        <f64>::sse_encode(self.min_confidence, serializer);
        <Option<crate::ImagePreprocessingConfig>>::sse_encode(self.preprocessing, serializer);
        <bool>::sse_encode(self.enable_table_detection, serializer);
        <f64>::sse_encode(self.table_min_confidence, serializer);
        <i64>::sse_encode(self.table_column_threshold, serializer);
        <f64>::sse_encode(self.table_row_threshold_ratio, serializer);
        <bool>::sse_encode(self.use_cache, serializer);
        <bool>::sse_encode(self.classify_use_pre_adapted_templates, serializer);
        <bool>::sse_encode(self.language_model_ngram_on, serializer);
        <bool>::sse_encode(self.tessedit_dont_blkrej_good_wds, serializer);
        <bool>::sse_encode(self.tessedit_dont_rowrej_good_wds, serializer);
        <bool>::sse_encode(self.tessedit_enable_dict_correction, serializer);
        <String>::sse_encode(self.tessedit_char_whitelist, serializer);
        <String>::sse_encode(self.tessedit_char_blacklist, serializer);
        <bool>::sse_encode(self.tessedit_use_primary_params_model, serializer);
        <bool>::sse_encode(self.textord_space_size_is_variable, serializer);
        <bool>::sse_encode(self.thresholding_method, serializer);
    }
}

impl SseEncode for crate::TextAnnotation {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.start, serializer);
        <i64>::sse_encode(self.end, serializer);
        <crate::AnnotationKind>::sse_encode(self.kind, serializer);
    }
}

impl SseEncode for crate::TextDirection {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::TextDirection::LeftToRight => 0,
                crate::TextDirection::RightToLeft => 1,
                crate::TextDirection::Auto => 2,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for crate::TextExtractionResult {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.content, serializer);
        <i64>::sse_encode(self.line_count, serializer);
        <i64>::sse_encode(self.word_count, serializer);
        <i64>::sse_encode(self.character_count, serializer);
        <Option<Vec<String>>>::sse_encode(self.headers, serializer);
        <Option<Vec<Vec<String>>>>::sse_encode(self.links, serializer);
        <Option<Vec<Vec<String>>>>::sse_encode(self.code_blocks, serializer);
    }
}

impl SseEncode for crate::TextMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.line_count, serializer);
        <i64>::sse_encode(self.word_count, serializer);
        <i64>::sse_encode(self.character_count, serializer);
        <Option<Vec<String>>>::sse_encode(self.headers, serializer);
        <Option<Vec<Vec<String>>>>::sse_encode(self.links, serializer);
        <Option<Vec<Vec<String>>>>::sse_encode(self.code_blocks, serializer);
    }
}

impl SseEncode for crate::TokenReductionConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <crate::ReductionLevel>::sse_encode(self.level, serializer);
        <Option<String>>::sse_encode(self.language_hint, serializer);
        <bool>::sse_encode(self.preserve_markdown, serializer);
        <bool>::sse_encode(self.preserve_code, serializer);
        <f64>::sse_encode(self.semantic_threshold, serializer);
        <bool>::sse_encode(self.enable_parallel, serializer);
        <bool>::sse_encode(self.use_simd, serializer);
        <Option<std::collections::HashMap<String, Vec<String>>>>::sse_encode(self.custom_stopwords, serializer);
        <Vec<String>>::sse_encode(self.preserve_patterns, serializer);
        <Option<f64>>::sse_encode(self.target_reduction, serializer);
        <bool>::sse_encode(self.enable_semantic_clustering, serializer);
    }
}

impl SseEncode for crate::TokenReductionOptions {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.mode, serializer);
        <bool>::sse_encode(self.preserve_important_words, serializer);
    }
}

impl SseEncode for crate::TreeSitterConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.enabled, serializer);
        <Option<String>>::sse_encode(self.cache_dir, serializer);
        <Option<Vec<String>>>::sse_encode(self.languages, serializer);
        <Option<Vec<String>>>::sse_encode(self.groups, serializer);
        <crate::TreeSitterProcessConfig>::sse_encode(self.process, serializer);
    }
}

impl SseEncode for crate::TreeSitterProcessConfig {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <bool>::sse_encode(self.structure, serializer);
        <bool>::sse_encode(self.imports, serializer);
        <bool>::sse_encode(self.exports, serializer);
        <bool>::sse_encode(self.comments, serializer);
        <bool>::sse_encode(self.docstrings, serializer);
        <bool>::sse_encode(self.symbols, serializer);
        <bool>::sse_encode(self.diagnostics, serializer);
        <Option<i64>>::sse_encode(self.chunk_max_size, serializer);
        <crate::CodeContentMode>::sse_encode(self.content_mode, serializer);
    }
}

impl SseEncode for u8 {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        serializer.cursor.write_u8(self).unwrap();
    }
}

impl SseEncode for () {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {}
}

impl SseEncode for crate::UriKind {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i32>::sse_encode(
            match self {
                crate::UriKind::Hyperlink => 0,
                crate::UriKind::Image => 1,
                crate::UriKind::Anchor => 2,
                crate::UriKind::Citation => 3,
                crate::UriKind::Reference => 4,
                crate::UriKind::Email => 5,
                _ => {
                    unimplemented!("");
                }
            },
            serializer,
        );
    }
}

impl SseEncode for usize {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        serializer.cursor.write_u64::<NativeEndian>(self as _).unwrap();
    }
}

impl SseEncode for crate::XlsxAppProperties {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Option<String>>::sse_encode(self.application, serializer);
        <Option<String>>::sse_encode(self.app_version, serializer);
        <Option<i64>>::sse_encode(self.doc_security, serializer);
        <Option<bool>>::sse_encode(self.scale_crop, serializer);
        <Option<bool>>::sse_encode(self.links_up_to_date, serializer);
        <Option<bool>>::sse_encode(self.shared_doc, serializer);
        <Option<bool>>::sse_encode(self.hyperlinks_changed, serializer);
        <Option<String>>::sse_encode(self.company, serializer);
        <Vec<String>>::sse_encode(self.worksheet_names, serializer);
    }
}

impl SseEncode for crate::XmlExtractionResult {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <String>::sse_encode(self.content, serializer);
        <i64>::sse_encode(self.element_count, serializer);
        <Vec<String>>::sse_encode(self.unique_elements, serializer);
    }
}

impl SseEncode for crate::XmlMetadata {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.element_count, serializer);
        <Vec<String>>::sse_encode(self.unique_elements, serializer);
    }
}

impl SseEncode for crate::YakeParams {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <i64>::sse_encode(self.window_size, serializer);
    }
}

impl SseEncode for crate::YearRange {
    // Codec=Sse (Serialization based), see doc to use other codecs
    fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
        <Option<i64>>::sse_encode(self.min, serializer);
        <Option<i64>>::sse_encode(self.max, serializer);
        <Vec<i64>>::sse_encode(self.years, serializer);
    }
}

#[cfg(not(target_family = "wasm"))]
mod io {
    // This file is automatically generated, so please do not edit it.
    // @generated by `flutter_rust_bridge`@ 2.12.0.

    // Section: imports

    use super::*;
    use crate::*;
    use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt};
    use flutter_rust_bridge::for_generated::{Lifetimeable, Lockable, transform_result_dco};
    use flutter_rust_bridge::{Handler, IntoIntoDart};

    // Section: boilerplate

    flutter_rust_bridge::frb_generated_boilerplate_io!();

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynDocumentExtractorSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn DocumentExtractor + Send + Sync >>>::increment_strong_count(ptr as _);
    }

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynDocumentExtractorSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn DocumentExtractor + Send + Sync >>>::decrement_strong_count(ptr as _);
    }

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynEmbeddingBackendSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn EmbeddingBackend + Send + Sync >>>::increment_strong_count(ptr as _);
    }

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynEmbeddingBackendSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn EmbeddingBackend + Send + Sync >>>::decrement_strong_count(ptr as _);
    }

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynOcrBackendSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn OcrBackend + Send + Sync >>>::increment_strong_count(ptr as _);
    }

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynOcrBackendSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn OcrBackend + Send + Sync >>>::decrement_strong_count(ptr as _);
    }

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynPostProcessorSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn PostProcessor + Send + Sync >>>::increment_strong_count(ptr as _);
    }

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynPostProcessorSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn PostProcessor + Send + Sync >>>::decrement_strong_count(ptr as _);
    }

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynRendererSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn Renderer + Send + Sync >>>::increment_strong_count(ptr as _);
    }

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynRendererSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn Renderer + Send + Sync >>>::decrement_strong_count(ptr as _);
    }

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynValidatorSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn Validator + Send + Sync >>>::increment_strong_count(ptr as _);
    }

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynValidatorSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn Validator + Send + Sync >>>::decrement_strong_count(ptr as _);
    }

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerDocumentExtractorDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<DocumentExtractorDartImpl>>::increment_strong_count(ptr as _);
    }

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerDocumentExtractorDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<DocumentExtractorDartImpl>>::decrement_strong_count(ptr as _);
    }

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEmbeddingBackendDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<EmbeddingBackendDartImpl>>::increment_strong_count(ptr as _);
    }

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEmbeddingBackendDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<EmbeddingBackendDartImpl>>::decrement_strong_count(ptr as _);
    }

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOcrBackendDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<OcrBackendDartImpl>>::increment_strong_count(
            ptr as _,
        );
    }

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOcrBackendDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<OcrBackendDartImpl>>::decrement_strong_count(
            ptr as _,
        );
    }

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPostProcessorDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<PostProcessorDartImpl>>::increment_strong_count(ptr as _);
    }

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPostProcessorDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<PostProcessorDartImpl>>::decrement_strong_count(ptr as _);
    }

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRendererDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<RendererDartImpl>>::increment_strong_count(
            ptr as _,
        );
    }

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRendererDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<RendererDartImpl>>::decrement_strong_count(
            ptr as _,
        );
    }

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerValidatorDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<ValidatorDartImpl>>::increment_strong_count(
            ptr as _,
        );
    }

    #[unsafe(no_mangle)]
    pub extern "C" fn frbgen_kreuzberg_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerValidatorDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<ValidatorDartImpl>>::decrement_strong_count(
            ptr as _,
        );
    }
}
#[cfg(not(target_family = "wasm"))]
pub use io::*;

/// cbindgen:ignore
#[cfg(target_family = "wasm")]
mod web {
    // This file is automatically generated, so please do not edit it.
    // @generated by `flutter_rust_bridge`@ 2.12.0.

    // Section: imports

    use super::*;
    use crate::*;
    use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt};
    use flutter_rust_bridge::for_generated::wasm_bindgen;
    use flutter_rust_bridge::for_generated::wasm_bindgen::prelude::*;
    use flutter_rust_bridge::for_generated::{Lifetimeable, Lockable, transform_result_dco};
    use flutter_rust_bridge::{Handler, IntoIntoDart};

    // Section: boilerplate

    flutter_rust_bridge::frb_generated_boilerplate_web!();

    #[wasm_bindgen]
    pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynDocumentExtractorSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn DocumentExtractor + Send + Sync >>>::increment_strong_count(ptr as _);
    }

    #[wasm_bindgen]
    pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynDocumentExtractorSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn DocumentExtractor + Send + Sync >>>::decrement_strong_count(ptr as _);
    }

    #[wasm_bindgen]
    pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynEmbeddingBackendSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn EmbeddingBackend + Send + Sync >>>::increment_strong_count(ptr as _);
    }

    #[wasm_bindgen]
    pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynEmbeddingBackendSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn EmbeddingBackend + Send + Sync >>>::decrement_strong_count(ptr as _);
    }

    #[wasm_bindgen]
    pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynOcrBackendSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn OcrBackend + Send + Sync >>>::increment_strong_count(ptr as _);
    }

    #[wasm_bindgen]
    pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynOcrBackendSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn OcrBackend + Send + Sync >>>::decrement_strong_count(ptr as _);
    }

    #[wasm_bindgen]
    pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynPostProcessorSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn PostProcessor + Send + Sync >>>::increment_strong_count(ptr as _);
    }

    #[wasm_bindgen]
    pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynPostProcessorSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn PostProcessor + Send + Sync >>>::decrement_strong_count(ptr as _);
    }

    #[wasm_bindgen]
    pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynRendererSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn Renderer + Send + Sync >>>::increment_strong_count(ptr as _);
    }

    #[wasm_bindgen]
    pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynRendererSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn Renderer + Send + Sync >>>::decrement_strong_count(ptr as _);
    }

    #[wasm_bindgen]
    pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynValidatorSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn Validator + Send + Sync >>>::increment_strong_count(ptr as _);
    }

    #[wasm_bindgen]
    pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerArcdynValidatorSendSync(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner< Arc < dyn Validator + Send + Sync >>>::decrement_strong_count(ptr as _);
    }

    #[wasm_bindgen]
    pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerDocumentExtractorDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<DocumentExtractorDartImpl>>::increment_strong_count(ptr as _);
    }

    #[wasm_bindgen]
    pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerDocumentExtractorDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<DocumentExtractorDartImpl>>::decrement_strong_count(ptr as _);
    }

    #[wasm_bindgen]
    pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEmbeddingBackendDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<EmbeddingBackendDartImpl>>::increment_strong_count(ptr as _);
    }

    #[wasm_bindgen]
    pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEmbeddingBackendDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<EmbeddingBackendDartImpl>>::decrement_strong_count(ptr as _);
    }

    #[wasm_bindgen]
    pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOcrBackendDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<OcrBackendDartImpl>>::increment_strong_count(
            ptr as _,
        );
    }

    #[wasm_bindgen]
    pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOcrBackendDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<OcrBackendDartImpl>>::decrement_strong_count(
            ptr as _,
        );
    }

    #[wasm_bindgen]
    pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPostProcessorDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<PostProcessorDartImpl>>::increment_strong_count(ptr as _);
    }

    #[wasm_bindgen]
    pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerPostProcessorDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<PostProcessorDartImpl>>::decrement_strong_count(ptr as _);
    }

    #[wasm_bindgen]
    pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRendererDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<RendererDartImpl>>::increment_strong_count(
            ptr as _,
        );
    }

    #[wasm_bindgen]
    pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRendererDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<RendererDartImpl>>::decrement_strong_count(
            ptr as _,
        );
    }

    #[wasm_bindgen]
    pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerValidatorDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<ValidatorDartImpl>>::increment_strong_count(
            ptr as _,
        );
    }

    #[wasm_bindgen]
    pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerValidatorDartImpl(
        ptr: *const std::ffi::c_void,
    ) {
        MoiArc::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<ValidatorDartImpl>>::decrement_strong_count(
            ptr as _,
        );
    }
}
#[cfg(target_family = "wasm")]
pub use web::*;
