2023-04-14 01:40:40 +02:00
|
|
|
class SafeSearch {
|
2023-04-15 01:22:44 +02:00
|
|
|
bool enabled = false;
|
|
|
|
bool bing = false;
|
|
|
|
bool duckduckgo = false;
|
|
|
|
bool google = false;
|
|
|
|
bool pixabay = false;
|
|
|
|
bool yandex = false;
|
|
|
|
bool youtube = false;
|
2023-04-14 01:40:40 +02:00
|
|
|
|
|
|
|
SafeSearch({
|
|
|
|
required this.enabled,
|
|
|
|
required this.bing,
|
|
|
|
required this.duckduckgo,
|
|
|
|
required this.google,
|
|
|
|
required this.pixabay,
|
|
|
|
required this.yandex,
|
|
|
|
required this.youtube,
|
|
|
|
});
|
|
|
|
|
2023-04-15 01:22:44 +02:00
|
|
|
factory SafeSearch.fromJson(Map<String, dynamic> json) => SafeSearch(
|
2023-04-14 01:40:40 +02:00
|
|
|
enabled: json["enabled"],
|
|
|
|
bing: json["bing"],
|
|
|
|
duckduckgo: json["duckduckgo"],
|
|
|
|
google: json["google"],
|
|
|
|
pixabay: json["pixabay"],
|
|
|
|
yandex: json["yandex"],
|
|
|
|
youtube: json["youtube"],
|
|
|
|
);
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
|
|
"enabled": enabled,
|
|
|
|
"bing": bing,
|
|
|
|
"duckduckgo": duckduckgo,
|
|
|
|
"google": google,
|
|
|
|
"pixabay": pixabay,
|
|
|
|
"yandex": yandex,
|
|
|
|
"youtube": youtube,
|
|
|
|
};
|
|
|
|
}
|