representation.mapPut("parameters", parameters);
return this;
}
private Object paramDetails(final ObjectActionParameter param) {
final JsonRepresentation paramRep = JsonRepresentation.newMap();
paramRep.mapPut("num", param.getNumber());
paramRep.mapPut("id", param.getId());
paramRep.mapPut("name", param.getName());
paramRep.mapPut("description", param.getDescription());
final Object paramChoices = choicesFor(param);
if (paramChoices != null) {
paramRep.mapPut("choices", paramChoices);
}
final Object paramDefault = defaultFor(param);
if (paramDefault != null) {
paramRep.mapPut("default", paramDefault);
}
return paramRep;
}