/** * @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 Result fromJson(Json json) { Result.Builder builder = Result.builder(); if (json.failureReason != null) { builder.failureReason(json.failureReason); } return builder.build(); }