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 (followerId != null) {
    theDocument["followerId"] = followerId;
  } else {
    theDocument["followerId"] = null;
  }
  if (followedId != null) {
    theDocument["followedId"] = followedId;
  } else {
    theDocument["followedId"] = null;
  }
  if (status != null) {
    theDocument["status"] = status;
  } else {
    theDocument["status"] = null;
  }
  return theDocument;
}