toJson method

Map<String, dynamic> toJson()

Implementation

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