toJson method

Map<String, dynamic> toJson()

Implementation

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