RuleCondition constructor

RuleCondition({
  1. RuleCondition_Everyone? everyone,
  2. RuleCondition_NoOne? noOne,
  3. RuleCondition_AuthenticatedUsers? authenticatedUsers,
  4. RuleCondition_TaggedUsers? taggedUsers,
  5. RuleCondition_Chat? chat,
  6. RuleCondition_UsersCollection? users,
  7. RuleCondition_UsersPushNotifications? usersPushNotifications,
})

Implementation

factory RuleCondition({
  RuleCondition_Everyone? everyone,
  RuleCondition_NoOne? noOne,
  RuleCondition_AuthenticatedUsers? authenticatedUsers,
  RuleCondition_TaggedUsers? taggedUsers,
  RuleCondition_Chat? chat,
  RuleCondition_UsersCollection? users,
  RuleCondition_UsersPushNotifications? usersPushNotifications,
}) {
  final result = create();
  if (everyone != null) result.everyone = everyone;
  if (noOne != null) result.noOne = noOne;
  if (authenticatedUsers != null)
    result.authenticatedUsers = authenticatedUsers;
  if (taggedUsers != null) result.taggedUsers = taggedUsers;
  if (chat != null) result.chat = chat;
  if (users != null) result.users = users;
  if (usersPushNotifications != null)
    result.usersPushNotifications = usersPushNotifications;
  return result;
}