MarketSparkline.fromJson constructor

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

Constructs a MarketSparkline instance from a JSON map.

The json parameter is a map containing the sparkline data.

Implementation

MarketSparkline.fromJson(Map<String, dynamic> json)
    : this.price = Convert.toListOfDouble(json['price']);