inject method
inject method to inject the parameters into the request url
Implementation
Uri inject(String server) {
var urlToParse =
'$server/${service.toString().split('.').last}/$version/${profile.name}/${coordinates.map((e) => e.toLongLatCoordinateString()).join(';')}';
if (queryParameters.isNotEmpty) {
urlToParse += '?';
urlToParse +=
queryParameters.entries.map((e) => '${e.key}=${e.value}').join('&');
}
return Uri.parse(urlToParse);
}