toJson method
Encode Tick json
Implementation
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['mode'] = _mode;
map['tradable'] = _tradable;
map['token'] = _token;
map['lastTradedPrice'] = _lastTradedPrice;
map['highPrice'] = _highPrice;
map['lowPrice'] = _lowPrice;
map['openPrice'] = _openPrice;
map['closePrice'] = _closePrice;
map['change'] = _change;
map['lastTradeQuantity'] = _lastTradeQuantity;
map['averageTradePrice'] = _averageTradePrice;
map['volumeTradedToday'] = _volumeTradedToday;
map['totalBuyQuantity'] = _totalBuyQuantity;
map['totalSellQuantity'] = _totalSellQuantity;
map['lastTradedTime'] = _lastTradedTime;
map['oi'] = _oi;
map['openInterestDayHigh'] = _openInterestDayHigh;
map['openInterestDayLow'] = _openInterestDayLow;
map['tickTimestamp'] = _tickTimestamp;
map['depth'] = _depth;
return map;
}