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