WsDiffOrderBook.fromMap constructor

WsDiffOrderBook.fromMap(
  1. Map m
)

Implementation

WsDiffOrderBook.fromMap(Map m)
    : eventType = m['e'],
      eventTime = m["E"],
      symbol = m["s"],
      firstUpdateId = m["U"],
      finalUpdateId = m["u"],
      lastUpdateId = m["pu"],
      transactionTime = m['T'],
      bids = (m['b'] as List<dynamic>)
          .map((e) => OrderbookOrder.fromList(e))
          .toList(),
      asks = (m['a'] as List<dynamic>)
          .map((e) => OrderbookOrder.fromList(e))
          .toList();