DeviceKeys.fromSDNDeviceKeys constructor

DeviceKeys.fromSDNDeviceKeys(
  1. SDNDeviceKeys keys,
  2. Client client, [
  3. 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();
}