Device constructor

Device({
  1. List<int>? id,
  2. List<int>? hardwareId,
  3. String? hardwareFqdn,
  4. DeviceConfig? config,
  5. DeviceStatus? status,
  6. bool? isSimulator,
  7. DeviceAction? nextAction,
})

Implementation

factory Device({
  $core.List<$core.int>? id,
  $core.List<$core.int>? hardwareId,
  $core.String? hardwareFqdn,
  $1.DeviceConfig? config,
  $1.DeviceStatus? status,
  $core.bool? isSimulator,
  $1.DeviceAction? nextAction,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (hardwareId != null) {
    _result.hardwareId = hardwareId;
  }
  if (hardwareFqdn != null) {
    _result.hardwareFqdn = hardwareFqdn;
  }
  if (config != null) {
    _result.config = config;
  }
  if (status != null) {
    _result.status = status;
  }
  if (isSimulator != null) {
    _result.isSimulator = isSimulator;
  }
  if (nextAction != null) {
    _result.nextAction = nextAction;
  }
  return _result;
}