mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-14 04:33:16 +00:00
19 lines
477 B
Dart
19 lines
477 B
Dart
import 'package:selfprivacy/logic/api_maps/graphql_maps/schema/server_settings.graphql.dart';
|
|
|
|
class AutoUpgradeSettings {
|
|
AutoUpgradeSettings({
|
|
required this.enable,
|
|
required this.allowReboot,
|
|
});
|
|
|
|
AutoUpgradeSettings.fromGraphQL(
|
|
final Query$SystemSettings$system$settings$autoUpgrade autoUpgrade,
|
|
) : this(
|
|
enable: autoUpgrade.enable,
|
|
allowReboot: autoUpgrade.allowReboot,
|
|
);
|
|
|
|
final bool enable;
|
|
final bool allowReboot;
|
|
}
|