toJson method

  1. @override
Map<String, dynamic> toJson ()
override

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "@type": CONSTRUCTOR,
    "url": this.url,
    "title": this.title,
    "description": this.description,
    "photo": this.photo.toJson(),
    "author": this.author,
    "publish_date": this.publishDate,
  };
}