toJson method
Implementation
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['post_type'] = _postType;
map['feed_id'] = _feedId;
map['title'] = _title;
map['description'] = _description;
if (_feedDate != null) {
map['feed_date'] = _feedDate?.toJson();
}
if (_feedMedia != null) {
map['feed_media'] = _feedMedia?.toJson();
}
map['created_at_timestamp'] = _createdAtTimestamp;
map['created_at'] = _createdAt;
map['created_time'] = _createdTime;
map['location'] = _location;
map['sub_title'] = _subTitle;
if (_campaignDate != null) {
map['campaign_date'] = _campaignDate?.toJson();
}
map['campaign_share_url'] = _campaignShareUrl;
map['campaign_id'] = _campaignId;
if (_campaignMedia != null) {
map['campaign_media'] = _campaignMedia?.toJson();
}
return map;
}