getLatestExportByProject method
Implementation
Future<Export> getLatestExportByProject(String projectId) async {
try {
final result = await _exportServiceClient.getLatestByProject(
ProjectId(id: projectId),
options: CallOptions(
// compression: const GzipCodec(),
metadata: {
'authorization': token,
},
),
);
return result;
} catch (e) {
print('$e');
if ('$e'.contains('Bad state: No element')) {
throw Exception(
'Existing export is not available; try "update" command instead.',
);
}
rethrow;
}
}