toJson method
Implementation
Map<String, dynamic> toJson() => {
"type": type,
"location": location?.toJson(),
"content": content?.toJson(),
"media": media?.toJson(),
"design": design?.toJson(),
"hasActionButton": hasActionButton,
"actionButton": actionButton?.toJson(),
"_id": id,
};