parse static method
Convert JSON to CryptoPrice
Implementation
static CryptoPrice? parse(Map<String, dynamic>? data) {
if (data == null) return null;
return CryptoPrice(
price: data['price'],
symbol: data['symbol'],
);
}
Convert JSON to CryptoPrice
static CryptoPrice? parse(Map<String, dynamic>? data) {
if (data == null) return null;
return CryptoPrice(
price: data['price'],
symbol: data['symbol'],
);
}