code: public static DataError fromJson(ObjectNode node) {
          DataError error = new DataError();
          JsonNode x = node.get("data");
          if (x != null) {
              error.entityData = x;
          }
          x = node.get("errors");
          if (x instanceof ArrayNode) {
              error.errors = new ArrayList<>();
              for (Iterator<JsonNode> itr = ((ArrayNode) x).elements();
                      itr.hasNext();) {
                  error.errors.add(Error.fromJson(itr.next()));
              }
          }
          return error;
      }
docs: Parses a Json object node and returns the DataError corresponding to it.
  It is up to the client to make sure that the object node is a DataError
  representation. Any unrecognized elements are ignored.