toMap method

Map<String, dynamic> toMap()

Converts object to map.

Implementation

Map<String, dynamic> toMap() {
  return {
    'id': id,
    'userId': userId,
    'title': title,
    'message': message,
  };
}