Stats.fromJson constructor

Stats.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Stats.fromJson(Map<String, dynamic> json) {
  oneDayVolume = json['one_day_volume'];
  oneDayChange = json['one_day_change'];
  oneDaySales = json['one_day_sales'];
  oneDayAveragePrice = json['one_day_average_price'];
  sevenDayVolume = json['seven_day_volume'];
  sevenDayChange = json['seven_day_change'];
  sevenDaySales = json['seven_day_sales'];
  sevenDayAveragePrice = json['seven_day_average_price'];
  thirtyDayVolume = json['thirty_day_volume'];
  thirtyDayChange = json['thirty_day_change'];
  thirtyDaySales = json['thirty_day_sales'];
  thirtyDayAveragePrice = json['thirty_day_average_price'];
  totalVolume = json['total_volume'];
  totalSales = json['total_sales'];
  totalSupply = json['total_supply'];
  count = json['count'];
  numOwners = json['num_owners'];
  averagePrice = json['average_price'];
  numReports = json['num_reports'];
  marketCap = json['market_cap'];
  floorPrice = json['floor_price'].toDouble();
}