mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-12 11:43:16 +00:00
23 lines
606 B
Dart
23 lines
606 B
Dart
|
import 'package:equatable/equatable.dart';
|
||
|
import 'package:json_annotation/json_annotation.dart';
|
||
|
|
||
|
part 'auto_upgrade_settings.g.dart';
|
||
|
|
||
|
@JsonSerializable(createToJson: true)
|
||
|
class AutoUpgradeSettings extends Equatable {
|
||
|
final bool enable;
|
||
|
final bool allowReboot;
|
||
|
|
||
|
AutoUpgradeSettings({
|
||
|
required this.enable,
|
||
|
required this.allowReboot,
|
||
|
});
|
||
|
|
||
|
@override
|
||
|
List<Object?> get props => [enable, allowReboot];
|
||
|
factory AutoUpgradeSettings.fromJson(Map<String, dynamic> json) =>
|
||
|
_$AutoUpgradeSettingsFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$AutoUpgradeSettingsToJson(this);
|
||
|
}
|