getProject method
Retrieve the MBurger project.
Implementation
Future<MBProject> getProject({bool includeContracts = false}) async {
Map<String, String> apiParameters = {};
if (includeContracts) {
apiParameters['include'] = 'contracts';
}
String apiName = 'api/project';
apiParameters.addAll(await defaultParameters());
var uri = Uri.https(endpoint, apiName, apiParameters);
var response = await http.get(uri, headers: await headers());
Map<String, dynamic> body = MBManager.checkResponse(response.body);
return MBProject.fromDictionary(body);
}