toJson method

Map<String, dynamic> toJson()

Implementation

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