use of com.thoughtworks.go.api.util.GsonTransformer in project gocd by gocd.
the class PipelineOperationsControllerV1Delegate method getScheduleOptions.
private PipelineScheduleOptions getScheduleOptions(Request req) {
if (StringUtils.isBlank(req.body())) {
return new PipelineScheduleOptions();
}
GsonTransformer gsonTransformer = GsonTransformer.getInstance();
JsonReader jsonReader = gsonTransformer.jsonReaderFrom(req.body());
return PipelineScheduleOptionsRepresenter.fromJSON(jsonReader);
}
use of com.thoughtworks.go.api.util.GsonTransformer in project gocd by gocd.
the class PipelineOperationsControllerV1 method getScheduleOptions.
private PipelineScheduleOptions getScheduleOptions(Request req) {
if (StringUtils.isBlank(req.body())) {
return new PipelineScheduleOptions();
}
GsonTransformer gsonTransformer = GsonTransformer.getInstance();
JsonReader jsonReader = gsonTransformer.jsonReaderFrom(req.body());
return PipelineScheduleOptionsRepresenter.fromJSON(jsonReader);
}
Aggregations