deleteEmail method
Delete the emails from the server
Implementation
Future<DeleteEmailResponse> deleteEmail(
/// the IDs of the emails to delete
List<int> emailIds,
) async {
final response = await _doRequest(
call: 'fetch_email',
queryParameters: {
'email_ids': emailIds,
},
);
return DeleteEmailResponse.fromJson(jsonDecode(response.body));
}