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