mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-06 00:43:13 +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;
|
|
}
|