BookDepth.fromMap constructor

BookDepth.fromMap(
  1. Map m
)

Implementation

BookDepth.fromMap(Map m)
    : this.lastUpdateId = m["lastUpdateId"],
      this.bids =
          List<DepthPoint>.from(m["bids"].map((b) => DepthPoint.fromList(b))),
      this.asks =
          List<DepthPoint>.from(m["asks"].map((b) => DepthPoint.fromList(b)));