dhisUrl method
Implementation
@override
Future<String> dhisUrl() {
String fields = (this.selected).isNotEmpty
? (this.selected).join(',')
: 'id,name,toConstraint[program[id,code,name]],fromConstraint[program[id,name,code]]';
if (this.fromProgram != null) {
return Future.value(
'relationshipTypes.json?fields=$fields&filter=fromConstraint.program.id:eq:${fromProgram}&paging=false');
} else {
return Future.value(
'relationshipTypes.json?fields=$fields&filter=toConstraint.program.id:eq:${toProgram}&paging=false');
}
}