toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
      'headers': headers.map,
      'requestOptions': requestOptionsToMap(),
      'type': type,
      'data': data,
      'cookie': cookie,
      'statusCode': statusCode,
      'statusMessage': statusMessage,
      'extra': extra,
      'error': error,
    };