create static method

Backgrounds create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "backgrounds",
  3. String special_return_type = "backgrounds",
  4. List<Background>? backgrounds,
})
override

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

Implementation

static Backgrounds create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "backgrounds",
  String special_return_type = "backgrounds",
  List<Background>? backgrounds,
}) {
  // Backgrounds backgrounds = Backgrounds({
  final Map backgrounds_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "backgrounds": (backgrounds != null) ? backgrounds.toJson() : null,
  };

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

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