factory CurrencyAmount(String s, Currency currency) { final decimal = Decimal(s); return CurrencyAmount.fromDecimal(decimal, currency: currency); }