create static method

UserPrivacySettingRuleAllowBots create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "userPrivacySettingRuleAllowBots",
  3. String special_return_type = "userPrivacySettingRule",
})
override

Generate By General Universe Script Dont edit by hand or anything manual

Implementation

static UserPrivacySettingRuleAllowBots create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "userPrivacySettingRuleAllowBots",
  String special_return_type = "userPrivacySettingRule",
}) {
  // UserPrivacySettingRuleAllowBots userPrivacySettingRuleAllowBots = UserPrivacySettingRuleAllowBots({
  final Map userPrivacySettingRuleAllowBots_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
  };

  userPrivacySettingRuleAllowBots_data_create_json.removeWhere((key, value) => value == null);

  if (schemeUtilsIsSetDefaultData) {
    defaultData.forEach((key, value) {
      if (userPrivacySettingRuleAllowBots_data_create_json.containsKey(key) == false) {
        userPrivacySettingRuleAllowBots_data_create_json[key] = value;
      }
    });
  }
  return UserPrivacySettingRuleAllowBots(userPrivacySettingRuleAllowBots_data_create_json);
}