create static method

StatisticalValue create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "statisticalValue",
  3. String special_return_type = "statisticalValue",
  4. double? value,
  5. double? previous_value,
  6. double? growth_rate_percentage,
})
override

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

Implementation

static StatisticalValue create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "statisticalValue",
  String special_return_type = "statisticalValue",
  double? value,
  double? previous_value,
  double? growth_rate_percentage,
}) {
  // StatisticalValue statisticalValue = StatisticalValue({
  final Map statisticalValue_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "value": value,
    "previous_value": previous_value,
    "growth_rate_percentage": growth_rate_percentage,
  };

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

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