CoinsPriceResponse.fromJson constructor

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

Implementation

factory CoinsPriceResponse.fromJson(Map<String, dynamic> json) =>
    CoinsPriceResponse(
      prices: List<List<double>>.from(json['prices']
          .map((x) => List<double>.from(x.map((x) => x.toDouble())))),
      marketCaps: List<List<double>>.from(json['market_caps']
          .map((x) => List<double>.from(x.map((x) => x.toDouble())))),
      totalVolumes: List<List<double>>.from(json['total_volumes']
          .map((x) => List<double>.from(x.map((x) => x.toDouble())))),
    );