fromJson static method
Implementation
static Candles fromJson(Map<String, dynamic> json) => Candles(
(json['c'] as List<dynamic>)
.map(
(e) => (e as num).toDouble(),
)
.toList(),
(json['h'] as List<dynamic>)
.map(
(e) => (e as num).toDouble(),
)
.toList(),
(json['l'] as List<dynamic>)
.map(
(e) => (e as num).toDouble(),
)
.toList(),
(json['o'] as List<dynamic>)
.map(
(e) => (e as num).toDouble(),
)
.toList(),
json['s'] as String,
(json['t'] as List<dynamic>).map((e) => e.toInt() as int).toList(),
);