toDocument method

  1. @override
Map<String, Object?> toDocument()
override

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;
}