toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'title': title,
'slug': slug,
'excerpt': excerpt,
'content': content,
'featured_image': featuredImage,
'author': author,
'is_published': isPublished,
'published_at': publishedAt.toIso8601String(),
'created_at': createdAt.toIso8601String(),
'updated_at': updatedAt.toIso8601String(),
'app_id': appId,
};
}