toMap property

Map<String, dynamic> get toMap

Converts the DioException object to a Map object.

Implementation

Map<String, dynamic> get toMap => {
      'requestOptions': requestOptions.toMap,
      'response': response?.toMap,
      'type': type.name,
      'error': error,
      'stackTrace': stackTrace.toString(),
      'message': message,
    };