You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
378 B

class Data{
String author;
String title;
String description;
String url;
String urlToImage;
String content;
String publishedAt;
Data(this.author, this.title, this.description, this.url, this.urlToImage, this.content, this.publishedAt);
}
class NewsData{
List<Data> data;
NewsData(this.data);
}
class News{
NewsData newsData;
News(this.newsData);
}