toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'active_cryptocurrencies': activeCryptocurrencies,
    'upcoming_icos': upcomingIcos,
    'ongoing_icos': ongoingIcos,
    'ended_icos': endedIcos,
    'markets': markets,
    'total_market_cap': totalMarketCap??{},
    'total_volume': totalVolume??{},
    'market_cap_percentage': marketCapPercentage??{},
    'market_cap_change_percentage_24h_usd': marketCapChangePercentage24hUsd,
    'updated_at': updatedAt,
  };
}