toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  final map = <String, dynamic>{};
  map['url'] = url;
  map['method'] = method;
  map['requestBody'] = requestBody;
  map['responseBody'] = responseBody;
  map['responseCode'] = status;
  map['requestHeaders'] = requestHeaders;
  map['responseHeaders'] = responseHeaders;
  map['requestContentType'] = requestContentType;
  map['responseContentType'] = responseContentType;
  map['duration'] = duration;
  map['startTime'] = startTime.millisecondsSinceEpoch;
  map['requestBodySize'] = requestBodySize;
  map['responseBodySize'] = responseBodySize;
  map['errorDomain'] = errorDomain;
  map['errorCode'] = errorCode;
  return map;
}