toJson method

Map<String, dynamic> toJson()

Implementation

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