/** * @param json A JSON-bindable data structure * @return An immutable value type * @deprecated Do not use this method directly, it exists only for the <em>Jackson</em>-binding infrastructure */ @Deprecated @JsonCreator(mode = JsonCreator.Mode.DELEGATING) static ListTasksResponse fromJson(Json json) { ListTasksResponse.Builder builder = ListTasksResponse.builder(); if (json.pagination != null) { builder.pagination(json.pagination); } if (json.resources != null) { builder.addAllResources(json.resources); } return builder.build(); }