create static method

GetChatNotificationSettingsExceptions create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "getChatNotificationSettingsExceptions",
  3. String special_return_type = "chats",
  4. bool? is_tdlib_method,
  5. NotificationSettingsScope? scope,
  6. bool? compare_sound,
})
override

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

Implementation

static GetChatNotificationSettingsExceptions create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "getChatNotificationSettingsExceptions",
  String special_return_type = "chats",
  bool? is_tdlib_method,
  NotificationSettingsScope? scope,
  bool? compare_sound,
}) {
  // GetChatNotificationSettingsExceptions getChatNotificationSettingsExceptions = GetChatNotificationSettingsExceptions({
  final Map getChatNotificationSettingsExceptions_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "is_tdlib_method": is_tdlib_method,
    "scope": (scope != null) ? scope.toJson() : null,
    "compare_sound": compare_sound,
  };

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

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