select method

dynamic select(
  1. List<String> fields
)

A method that accepted a list of user selected fields as an argument . Fields as accepted by the DHIS2 API.

Example:

List<String> fields = ['id', 'name', 'path'];
select(fields);

Implementation

select(List<String> fields) {
  this.fields = fields;
  this.selected = fields;
  return this;
}