DeviceSettingsRequest constructor

DeviceSettingsRequest({
  1. required String action,
  2. required String manufacturer,
  3. required String model,
  4. required String version,
  5. required bool seen,
  6. required int lastSeenAt,
})

Implementation

DeviceSettingsRequest(
    {required String action,
    required String manufacturer,
    required String model,
    required String version,
    required bool seen,
    required int lastSeenAt}) {
  this.action = action;
  this.manufacturer = manufacturer;
  this.model = model;
  this.version = version;
  this.seen = seen;
  this.lastSeenAt = (lastSeenAt > 0)
      ? DateTime.fromMillisecondsSinceEpoch(lastSeenAt)
      : null;
}