Ticker.fromMap constructor

Ticker.fromMap(
  1. Map m
)

Implementation

Ticker.fromMap(Map m)
    : this.eventType = m['e'],
      this.eventTime = DateTime.fromMillisecondsSinceEpoch(m['E']),
      this.symbol = m['s'],
      this.priceChange = double.parse(m['p']),
      this.percentChange = double.parse(m['P']),
      this.averagePrice = double.parse(m['w']),
      this.initialPrice = double.parse(m['x']),
      this.lastPrice = double.parse(m['c']),
      this.lastQty = double.parse(m['Q']),
      this.bestBid = double.parse(m['b']),
      this.bestBidQty = double.parse(m['B']),
      this.bestAsk = double.parse(m['a']),
      this.bestAskQty = double.parse(m['A']),
      this.open = double.parse(m['o']),
      this.high = double.parse(m['h']),
      this.low = double.parse(m['l']),
      this.volume = double.parse(m['v']),
      this.quoteVolume = double.parse(m['q']),
      this.openTime = DateTime.fromMillisecondsSinceEpoch(m['O']),
      this.closeTime = DateTime.fromMillisecondsSinceEpoch(m['C']),
      this.firstTradeId = m['F'],
      this.lastTradeId = m['L'],
      this.tradesCount = m['n'];