create static method

AffiliateProgramParameters create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "affiliateProgramParameters",
  3. String special_return_type = "affiliateProgramParameters",
  4. num? commission_per_mille,
  5. num? month_count,
})
override

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

Implementation

static AffiliateProgramParameters create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "affiliateProgramParameters",
  String special_return_type = "affiliateProgramParameters",
  num? commission_per_mille,
  num? month_count,
}) {
  // AffiliateProgramParameters affiliateProgramParameters = AffiliateProgramParameters({
  final Map affiliateProgramParameters_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "commission_per_mille": commission_per_mille,
    "month_count": month_count,
  };

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

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