This commit is contained in:
Márton Kiss
2023-05-26 21:25:00 +02:00
parent 9e3b805fdd
commit 1558794e93
528 changed files with 38239 additions and 37732 deletions

View File

@@ -1,31 +1,31 @@
class News {
String title;
String content;
String link;
String openLabel;
String platform;
bool emergency;
Map? json;
News({
required this.title,
required this.content,
required this.link,
required this.openLabel,
required this.platform,
required this.emergency,
this.json,
});
factory News.fromJson(Map json) {
return News(
title: json["title"] ?? "",
content: json["content"] ?? "",
link: json["link"] ?? "",
openLabel: json["open_label"] ?? "",
platform: json["platform"] ?? "",
emergency: json["emergency"] ?? false,
json: json,
);
}
}
class News {
String title;
String content;
String link;
String openLabel;
String platform;
bool emergency;
Map? json;
News({
required this.title,
required this.content,
required this.link,
required this.openLabel,
required this.platform,
required this.emergency,
this.json,
});
factory News.fromJson(Map json) {
return News(
title: json["title"] ?? "",
content: json["content"] ?? "",
link: json["link"] ?? "",
openLabel: json["open_label"] ?? "",
platform: json["platform"] ?? "",
emergency: json["emergency"] ?? false,
json: json,
);
}
}