DeviceKeys.fromSDNDeviceKeys constructor
DeviceKeys.fromSDNDeviceKeys(
- SDNDeviceKeys keys,
- Client client, [
- DateTime? lastActiveTs
Implementation
DeviceKeys.fromSDNDeviceKeys(SDNDeviceKeys keys, Client client,
[DateTime? lastActiveTs])
: super.fromJson(keys.toJson().copy(), client) {
final json = toJson();
identifier = keys.deviceId;
algorithms = json['algorithms'].cast<String>();
lastActive = lastActiveTs ?? DateTime.now();
}