toDocument method

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

Implementation

@override
Map<String, Object?> toDocument() {
  Map<String, Object?> theDocument = HashMap();
  if (appId != null) {
    theDocument["appId"] = appId;
  } else {
    theDocument["appId"] = null;
  }
  if (privilegeLevel != null) {
    theDocument["privilegeLevel"] = privilegeLevel;
  } else {
    theDocument["privilegeLevel"] = null;
  }
  if (points != null) {
    theDocument["points"] = points;
  } else {
    theDocument["points"] = null;
  }
  if (blocked != null) {
    theDocument["blocked"] = blocked;
  } else {
    theDocument["blocked"] = null;
  }
  if (privilegeLevelBeforeBlocked != null) {
    theDocument["privilegeLevelBeforeBlocked"] = privilegeLevelBeforeBlocked;
  } else {
    theDocument["privilegeLevelBeforeBlocked"] = null;
  }
  return theDocument;
}