Map<String, dynamic> toJson() { final map = <String, dynamic>{}; map['headers'] = headers; map['method'] = method; map['url'] = url; return map; }