Amount conversion from lower subunit to higher unit and vice-versa
```rust
use amount_conversion::amount::FromCurrency;
enum Currency { Inr, Usd, }
impl FromCurrency for Currency { fn currency(&self) -> &str { match self { Currency::Inr => "INR", Currency::Usd => "USD", } } }
type Amount = AmountInner
struct Request { #[serde(flatten)] amount: Amount, id: i8, }
let amount_str = r#"{ "amount": 1, "currency": "Inr", "id": 1 }"#;
let request = serdejson::fromstr::
let highestunit: AmountH = request.amount.convert()?; let lowestunit: Amount = highestunit.convert()?; asserteq!(request.amount, lowest_unit); ```