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