mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-05 16:08:46 +00:00
17 lines
367 B
Dart
17 lines
367 B
Dart
import 'package:dio/dio.dart';
|
|
|
|
extension ObjectExtensions on Object? {
|
|
DioException toDioException({
|
|
required RequestOptions requestOptions,
|
|
DioExceptionType type = DioExceptionType.unknown,
|
|
String? message,
|
|
}) {
|
|
return DioException(
|
|
requestOptions: requestOptions,
|
|
error: this,
|
|
type: type,
|
|
message: message,
|
|
);
|
|
}
|
|
}
|