toMap method

Map<String, String> toMap()

Converts object to map.

Implementation

Map<String, String> toMap() {
  Map<String, String> map = <String, String>{};
  map['id'] = id;
  map['title'] = title;
  map['description'] = description;

  return map;
}