factory WebSocketRequest.fromJson(Map<String, dynamic> json) { return WebSocketRequest( headers: Headers.fromJson(json['headers'] as Map<String, dynamic>), ); }