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

23 lines
618 B
Dart
Raw Normal View History

2022-02-07 07:53:13 +00:00
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 {
2022-06-05 19:36:32 +00:00
factory AutoUpgradeSettings.fromJson(final Map<String, dynamic> json) =>
_$AutoUpgradeSettingsFromJson(json);
2022-02-07 07:53:13 +00:00
2022-05-24 18:55:39 +00:00
const AutoUpgradeSettings({
2022-02-07 07:53:13 +00:00
required this.enable,
required this.allowReboot,
});
2022-06-05 19:36:32 +00:00
final bool enable;
final bool allowReboot;
2022-02-07 07:53:13 +00:00
@override
List<Object?> get props => [enable, allowReboot];
Map<String, dynamic> toJson() => _$AutoUpgradeSettingsToJson(this);
}