toDocument method

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

Implementation

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