class Order {
    @JsonProperty("id")
    private String id;

    @JsonProperty("uuid")
    private String uuid;

    @JsonProperty("price")
    private String price;

    @JsonProperty("amount")
    private String amount;
  }

  public OrderBook toOrderBook(
      SortedMap<BigDecimal, BigDecimal> bids,
      SortedMap<BigDecimal, BigDecimal> asks,
      Map<String, String> bidIds,
      Map<String, String> askIds,
      int maxDepth,
      CurrencyPair currencyPair) {<FILL_FUNCTION_BODY>

    String[][] bidsData = null;
    String[][] asksData = null;

    if (this.contents.getBids() != null) {
      bidsData =
          Arrays.stream(this.contents.getBids())
              .map(
                  b -> {
                    bidIds.put(b.id, b.price);
                    return new String[] {b.price, b.amount};
                  })
              .toArray(String[][]::new);
    }
    if (this.contents.getAsks() != null) {
      asksData =
          Arrays.stream(this.contents.getAsks())
              .map(
                  a -> {
                    askIds.put(a.id, a.price);
                    return new String[] {a.price, a.amount};
                  })
              .toArray(String[][]::new);
    }

    List<LimitOrder> dydxBids =
        dydxOrderBookChanges(
            org.knowm.xchange.dto.Order.OrderType.BID,
            currencyPair,
            bidsData,
            bids,
            maxDepth,
            true);

    List<LimitOrder> dydxAsks =
        dydxOrderBookChanges(
            org.knowm.xchange.dto.Order.OrderType.ASK,
            currencyPair,
            asksData,
            asks,
            maxDepth,
            true);

    return new OrderBook(null, dydxBids, dydxAsks, false);
  
<methods>public non-sealed void <init>() <variables>private java.lang.String channel,private java.lang.String connectionId,private java.lang.String id,private java.lang.String messageId,private java.lang.String type