create static method

ReportOption create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "reportOption",
  3. String special_return_type = "reportOption",
  4. String? id,
  5. String? text,
})
override

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

Implementation

static ReportOption create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "reportOption",
  String special_return_type = "reportOption",
  String? id,
  String? text,
}) {
  // ReportOption reportOption = ReportOption({
  final Map reportOption_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "id": id,
    "text": text,
  };

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

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