//! This code was AUTOGENERATED using the Codama library.
use {
    carbon_core::graphql::primitives::{U32, U64},
    juniper::GraphQLObject,
};

#[derive(Debug, Clone, GraphQLObject)]
#[graphql(name = "PlatformFeeWrapUnwrapArgs")]
pub struct PlatformFeeWrapUnwrapArgsGraphQL {
    pub order_id: U64,
    pub amount_in: U64,
    pub commission_info: U32,
    pub platform_fee_rate: i32,
    pub tob: bool,
}

impl From<crate::types::PlatformFeeWrapUnwrapArgs> for PlatformFeeWrapUnwrapArgsGraphQL {
    fn from(original: crate::types::PlatformFeeWrapUnwrapArgs) -> Self {
        Self {
            order_id: carbon_core::graphql::primitives::U64(original.order_id),
            amount_in: carbon_core::graphql::primitives::U64(original.amount_in),
            commission_info: carbon_core::graphql::primitives::U32(original.commission_info),
            platform_fee_rate: original.platform_fee_rate as i32,
            tob: original.tob,
        }
    }
}
