create static method

SetDefaultBackground create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "setDefaultBackground",
  3. String special_return_type = "background",
  4. bool? is_tdlib_method,
  5. InputBackground? background,
  6. BackgroundType? type,
  7. bool? for_dark_theme,
})
override

Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual

Implementation

static SetDefaultBackground create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "setDefaultBackground",
  String special_return_type = "background",
  bool? is_tdlib_method,
  InputBackground? background,
  BackgroundType? type,
  bool? for_dark_theme,
}) {
  // SetDefaultBackground setDefaultBackground = SetDefaultBackground({
  final Map setDefaultBackground_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "is_tdlib_method": is_tdlib_method,
    "background": (background != null) ? background.toJson() : null,
    "type": (type != null) ? type.toJson() : null,
    "for_dark_theme": for_dark_theme,
  };

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

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