parse static method
Implementation
static List<Price> parse(List<Map<String, dynamic>>? data) {
if (data == null) {
return [];
}
return data
.map(
(e) => Price(
e['price'],
e['size'],
DateTime.fromMillisecondsSinceEpoch(e['timestamp']),
),
)
.toList();
}