toDocument method

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

Implementation

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