toDefaultDeviceRegistration method

DefaultDeviceRegistration toDefaultDeviceRegistration()

Convert this CamsDeviceRegistration to a DefaultDeviceRegistration with the same base properties.

This is needed for registering the device in the DeploymentService due to issue #561 - right now CAWS only can process a DefaultDeviceRegistration.

Implementation

DefaultDeviceRegistration toDefaultDeviceRegistration() =>
    DefaultDeviceRegistration(
      deviceId: deviceId,
      deviceDisplayName: deviceDisplayName,
      registrationCreatedOn: registrationCreatedOn,
    );