toMap method
Generates a map from a NewsAndEventsItem object, used when writing data to the database
Implementation
Map<String, String> toMap(){
Map<String, String> map = Map<String, String>();
map['dateAdded'] = this.dateAdded;
map['description'] = this.description;
map['image'] = this.image;
map['title'] = this.title;
map['url'] = this.url;
return map;
}