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