create static method

Count create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "count",
  3. String special_return_type = "count",
  4. num? count,
})
override

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

Implementation

static Count create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "count",
  String special_return_type = "count",
  num? count,
}) {
  // Count count = Count({
  final Map count_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "count": count,
  };

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

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