toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'id': id,
  'title': title,
  'content': content,
  'type': type,
  'image': image,
  'link': link,
  'createdAt': createdAt,
};