toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "image": image,
      "url": url,
      "date": date.toIso8601String(),
      "headline": headline,
      "source": source,
      "summary": summary,
    };