//! This code was AUTOGENERATED using the Codama library.
use juniper::GraphQLEnum;

#[derive(Debug, Clone, GraphQLEnum)]
#[graphql(name = "DataState")]
pub enum DataStateGraphQL {
    AccountState,
    LedgerState,
}

impl From<crate::types::DataState> for DataStateGraphQL {
    fn from(original: crate::types::DataState) -> Self {
        match original {
            crate::types::DataState::AccountState => Self::AccountState,
            crate::types::DataState::LedgerState => Self::LedgerState,
        }
    }
}
