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