DeviceBrokerSettings constructor

DeviceBrokerSettings({
  1. String? host,
  2. Int64? port,
  3. String? cn,
  4. @Deprecated('This field is deprecated.') String? protocol,
})

Implementation

factory DeviceBrokerSettings({
  $core.String? host,
  $fixnum.Int64? port,
  $core.String? cn,
  @$core.Deprecated('This field is deprecated.') $core.String? protocol,
}) {
  final _result = create();
  if (host != null) {
    _result.host = host;
  }
  if (port != null) {
    _result.port = port;
  }
  if (cn != null) {
    _result.cn = cn;
  }
  if (protocol != null) {
    // ignore: deprecated_member_use_from_same_package
    _result.protocol = protocol;
  }
  return _result;
}