skip to Main Content

How to properly use freezed in dart/flutter

I want to convert a Json with Freezed package in Dart/Flutter. my json: {"rates":{"btc":{"name":"Bitcoin","unit":"BTC","value":1.0,"type":"crypto"},"eth":{"name":"Ether","unit":"ETH","value":18.737,"type":"crypto"},"ltc":{"name":"Litecoin","unit":"LTC","value":747.585,"type":"crypto"},"bch":{"name":"Bitcoin Cash","unit":"BCH","value":194.048,"type":"crypto"},"bnb":{"name":"Binance Coin","unit":"BNB","value":150.81,"type":"crypto"},"eos":{"name":"EOS","unit":"EOS","value":67935.089,"type":"crypto"},"xrp":{"name":"XRP","unit":"XRP","value":95155.791,"type":"crypto"},"xlm":{"name":"Lumens","unit":"XLM","value":453990.358,"type":"crypto"},"link":{"name":"Chainlink","unit":"LINK","value":2609.98,"type":"crypto"},"dot":{"name":"Polkadot","unit":"DOT","value":6656.935,"type":"crypto"},"yfi":{"name":"Yearn.finance","unit":"YFI","value":6.75,"type":"crypto"},"usd":{"name":"US Dollar","unit":"$","value":52306.065,"type":"fiat"},"aed":{"name":"United Arab Emirates Dirham","unit":"DH","value":192111.287,"type":"fiat"},"ars":{"name":"Argentine Peso","unit":"$","value":43620885.106,"type":"fiat"},"aud":{"name":"Australian Dollar","unit":"A$","value":80483.238,"type":"fiat"},"bdt":{"name":"Bangladeshi Taka","unit":"৳","value":5730141.222,"type":"fiat"},"bhd":{"name":"Bahraini Dinar","unit":"BD","value":19714.26,"type":"fiat"},"bmd":{"name":"Bermudian Dollar","unit":"$","value":52306.065,"type":"fiat"},"brl":{"name":"Brazil Real","unit":"R$","value":259961.146,"type":"fiat"},"cad":{"name":"Canadian Dollar","unit":"CA$","value":70827.12,"type":"fiat"},"chf":{"name":"Swiss Franc","unit":"Fr.","value":46186.413,"type":"fiat"},"clp":{"name":"Chilean Peso","unit":"CLP$","value":50204408.056,"type":"fiat"},"cny":{"name":"Chinese Yuan","unit":"¥","value":372408.727,"type":"fiat"},"czk":{"name":"Czech Koruna","unit":"Kč","value":1235495.426,"type":"fiat"},"dkk":{"name":"Danish Krone","unit":"kr.","value":363157.719,"type":"fiat"},"eur":{"name":"Euro","unit":"€","value":48715.515,"type":"fiat"},"gbp":{"name":"British Pound Sterling","unit":"£","value":41686.312,"type":"fiat"},"gel":{"name":"Georgian Lari","unit":"₾","value":138872.604,"type":"fiat"},"hkd":{"name":"Hong Kong Dollar","unit":"HK$","value":409041.28,"type":"fiat"},"huf":{"name":"Hungarian Forint","unit":"Ft","value":18951574.97,"type":"fiat"},"idr":{"name":"Indonesian Rupiah","unit":"Rp","value":816333269.559,"type":"fiat"},"ils":{"name":"Israeli New…

VIEW QUESTION
Back To Top
Search