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