queries method

JSON queries()

Implementation

JSON queries() {
  final JSON value = {};

  if (_filter.isNotEmpty) {
    value[r"$filter"] = _filter.join(",");
  }

  if (_expand.isNotEmpty) {
    value[r"$expand"] = _expand.join(",");
  }

  if (_selectAll) {
    value[r"$select"] = "*";
  } else if (_select.isNotEmpty) {
    value[r"$select"] = _select.join(",");
  }

  return value;
}