selfprivacy.org.app/lib/logic/models/auto_upgrade_settings.dart

19 lines
477 B
Dart
Raw Normal View History

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;
}