toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (enabled != null) 'enabled': enabled!,
      if (host != null) 'host': host!,
      if (name != null) 'name': name!,
      if (port != null) 'port': port!,
      if (protocol != null) 'protocol': protocol!,
      if (tlsInfo != null) 'tlsInfo': tlsInfo!,
    };