DeviceConfig constructor

DeviceConfig({
  1. String? name,
  2. Timestamp? startedAfter,
  3. String? sdk,
  4. DeviceBrokerSettings? broker,
  5. DeviceConnectionSettings? connection,
  6. String? model,
  7. Timestamp? factoryAfter,
  8. DeviceRuntimeSettings? runtime,
  9. DeviceModulesConfig? modules,
  10. DeviceModelSettings? modelSettings,
})

Implementation

factory DeviceConfig({
  $core.String? name,
  $0.Timestamp? startedAfter,
  $core.String? sdk,
  DeviceBrokerSettings? broker,
  DeviceConnectionSettings? connection,
  $core.String? model,
  $0.Timestamp? factoryAfter,
  DeviceRuntimeSettings? runtime,
  DeviceModulesConfig? modules,
  DeviceModelSettings? modelSettings,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (startedAfter != null) {
    _result.startedAfter = startedAfter;
  }
  if (sdk != null) {
    _result.sdk = sdk;
  }
  if (broker != null) {
    _result.broker = broker;
  }
  if (connection != null) {
    _result.connection = connection;
  }
  if (model != null) {
    _result.model = model;
  }
  if (factoryAfter != null) {
    _result.factoryAfter = factoryAfter;
  }
  if (runtime != null) {
    _result.runtime = runtime;
  }
  if (modules != null) {
    _result.modules = modules;
  }
  if (modelSettings != null) {
    _result.modelSettings = modelSettings;
  }
  return _result;
}