toMap method

Map<String, String> toMap ()

Generates a map from a EducationArticle 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;
}