Data constructor

Data({
  1. DataType? type,
  2. List<int>? hardwareId,
  3. List<int>? deviceId,
  4. List<int>? eventId,
  5. List<int>? jobId,
  6. Timestamp? received,
  7. Timestamp? created,
  8. List<int>? data,
})

Implementation

factory Data({
  DataType? type,
  $core.List<$core.int>? hardwareId,
  $core.List<$core.int>? deviceId,
  $core.List<$core.int>? eventId,
  $core.List<$core.int>? jobId,
  $1.Timestamp? received,
  $1.Timestamp? created,
  $core.List<$core.int>? data,
}) {
  final _result = create();
  if (type != null) {
    _result.type = type;
  }
  if (hardwareId != null) {
    _result.hardwareId = hardwareId;
  }
  if (deviceId != null) {
    _result.deviceId = deviceId;
  }
  if (eventId != null) {
    _result.eventId = eventId;
  }
  if (jobId != null) {
    _result.jobId = jobId;
  }
  if (received != null) {
    _result.received = received;
  }
  if (created != null) {
    _result.created = created;
  }
  if (data != null) {
    _result.data = data;
  }
  return _result;
}