uri property
Uri
get
uri
Implementation
Uri get uri {
var _path = path.startsWith("http")
? path
: path.startsWith("/")
? path
: "/$path";
var uri = Uri.parse(graph_root + _path);
var query = Map<String, dynamic>();
if (_filters.isNotEmpty) {
query["\$filter"] = _filters.join(" and ");
}
if (_select.isNotEmpty) {
query["\$select"] = _select.join(",");
}
if (_top != 10) {
query["\$top"] = _top;
}
if (_orderBy != null) {
query["\$orderBy"] = _orderBy;
}
return uri.replace(queryParameters: query);
}