toDocument method

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

Implementation

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