submit method
Implementation
Future<RecipientModel> submit(int id, int version, [Map? data]) async {
try {
final response = await dio.put('/mail/$id',
queryParameters: {'version': version, 'go': true},
data: data,
options: Options(receiveDataWhenStatusError: true));
return RecipientModel.fromJson(response.data);
} on DioException catch (e) {
_handleError(e);
rethrow;
}
}