DeviceRegistration constructor

DeviceRegistration({
  1. String? deviceId,
  2. String? deviceDisplayName,
  3. DateTime? registrationCreatedOn,
})

Implementation

DeviceRegistration({
  String? deviceId,
  this.deviceDisplayName,
  DateTime? registrationCreatedOn,
}) : super() {
  this.registrationCreatedOn =
      registrationCreatedOn ?? DateTime.now().toUtc();
  this.deviceId = deviceId ?? const Uuid().v1;
}