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