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