}
public DatasetRequest createDatasetRequestFromJson(JsonDataset json) {
validateJSON(json);
DatasetRequest request;
if (json.isMipped()) {
request = buildPreMipmappedDatasetRequest(json);
} else {
request = buildDatasetRequest(json);
}
// Properties common to basic and multires datasets
request.setIdentifier(json.getId());
request.setRangeLabel(json.getLabel());
request.setAxisId(json.getAxisId());
request.setPreferredRenderer(json.getPreferredRenderer());
return request;
}