This commit is contained in:
unknown
2021-08-30 22:38:58 +02:00
parent 9544d89993
commit 46fa86f989
152 changed files with 4074 additions and 0 deletions

View File

@@ -0,0 +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,
);
}
}