getMedia method
Retrieve the media of the project with the specified id.
Implementation
Future<MBMedia> getMedia(int mediaId) async {
Map<String, String> apiParameters = {};
String apiName = 'api/media/$mediaId';
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 MBMedia(dictionary: body);
}