toDocument method
Implementation
@override
Map<String, Object?> toDocument() {
Map<String, Object?> theDocument = HashMap();
if (postId != null) {
theDocument["postId"] = postId;
} else {
theDocument["postId"] = null;
}
if (postCommentId != null) {
theDocument["postCommentId"] = postCommentId;
} else {
theDocument["postCommentId"] = null;
}
if (memberId != null) {
theDocument["memberId"] = memberId;
} else {
theDocument["memberId"] = null;
}
theDocument["timestamp"] = timestamp;
if (appId != null) {
theDocument["appId"] = appId;
} else {
theDocument["appId"] = null;
}
if (likeType != null) {
theDocument["likeType"] = likeType;
} else {
theDocument["likeType"] = null;
}
return theDocument;
}