TransactionData.fromJson constructor

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

Implementation

factory TransactionData.fromJson(Map<String, dynamic> json) =>
    TransactionData(
      time: json['time'] as String,
      price: (json['price'] as num).toDouble(),
      vol: (json['vol'] as num).toDouble(),
      amount: (json['amount'] as num).toDouble(),
      buySell: json['buy_sell'] as int,
    );