toMap method

Map<String, dynamic> toMap()

Implementation

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