Map<String, dynamic> toJson() { final httpRoute = this.httpRoute; return { if (httpRoute != null) 'httpRoute': httpRoute, }; }