toDocument method
Implementation
@override
Map<String, Object?> toDocument() {
Map<String, Object?> theDocument = HashMap();
if (appId != null) {
theDocument["appId"] = appId;
} else {
theDocument["appId"] = null;
}
if (description != null) {
theDocument["description"] = description;
} else {
theDocument["description"] = null;
}
if (thumbImage != null) {
theDocument["thumbImage"] = thumbImage;
} else {
theDocument["thumbImage"] = null;
}
if (photoPost != null) {
theDocument["photoPost"] = photoPost;
} else {
theDocument["photoPost"] = null;
}
if (videoPost != null) {
theDocument["videoPost"] = videoPost;
} else {
theDocument["videoPost"] = null;
}
if (messagePost != null) {
theDocument["messagePost"] = messagePost;
} else {
theDocument["messagePost"] = null;
}
if (audioPost != null) {
theDocument["audioPost"] = audioPost;
} else {
theDocument["audioPost"] = null;
}
if (albumPost != null) {
theDocument["albumPost"] = albumPost;
} else {
theDocument["albumPost"] = null;
}
if (articlePost != null) {
theDocument["articlePost"] = articlePost;
} else {
theDocument["articlePost"] = null;
}
return theDocument;
}