toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'request': request?.toMap(),
    'response': response?.toMap(),
    'options': options?.toMap(),
    'type': type?.index,
    'error': error,
  };
}