Article.fromJson constructor

Article.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Article.fromJson(Map<String, dynamic> json) {
  return Article(
    Source.fromJson(json["source"]),
    json["author"],
    json["title"],
    json["description"],
    json["url"],
    json["urlToImage"],
    json["publishedAt"],
    json["content"],
  );
}