DiffBookDepth.fromMap constructor

DiffBookDepth.fromMap(
  1. Map m
)

Implementation

DiffBookDepth.fromMap(Map m)
    : this.eventType = m['e'],
      this.eventTime = DateTime.fromMillisecondsSinceEpoch(m['E']),
      this.symbol = m['s'],
      this.firstUpdateId = m["U"],
      this.lastUpdateId = m["u"],
      this.bids =
          List<DepthPoint>.from(m["b"].map((b) => DepthPoint.fromList(b))),
      this.asks =
          List<DepthPoint>.from(m["a"].map((b) => DepthPoint.fromList(b)));