toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'requestURL': requestURL,
    'requestMethod': requestMethod,
    'requestHeaders': requestHeaders.map((e) => e.toJson()).toList(),
    'responseTime': responseTime,
    'responseStatus': responseStatus,
    'responseStatusText': responseStatusText,
    'responseType': responseType.toJson(),
    'responseHeaders': responseHeaders.map((e) => e.toJson()).toList(),
  };
}