create static method

OptionValueBoolean create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "optionValueBoolean",
  3. String special_return_type = "optionValue",
  4. bool? value,
})
override

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

Implementation

static OptionValueBoolean create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "optionValueBoolean",
  String special_return_type = "optionValue",
  bool? value,
}) {
  // OptionValueBoolean optionValueBoolean = OptionValueBoolean({
  final Map optionValueBoolean_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "value": value,
  };

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

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