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.

24 lines
378 B

2 years ago
  1. class Data{
  2. String author;
  3. String title;
  4. String description;
  5. String url;
  6. String urlToImage;
  7. String content;
  8. String publishedAt;
  9. Data(this.author, this.title, this.description, this.url, this.urlToImage, this.content, this.publishedAt);
  10. }
  11. class NewsData{
  12. List<Data> data;
  13. NewsData(this.data);
  14. }
  15. class News{
  16. NewsData newsData;
  17. News(this.newsData);
  18. }