toMap method

Map<String, String> toMap ()

Generates a map from a SuggestedArticle object, used when writing data to the database

Implementation

Map<String, String> toMap(){
  Map<String, String> map = Map<String, String>();

  map['suggestedBy'] = this.suggestedBy;
  map['donorNumber'] = this.donorNumber;
  map['dateSuggested'] = this.dateSuggested;
  map['url'] = this.url;
  map['comments'] = this.comments;

  return map;
}