create static method

CheckOutAds create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "checkOutAds",
  3. CreateAds? ads,
})
override

Generated

Implementation

static CheckOutAds create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "checkOutAds",
  CreateAds? ads,
}) {
  // CheckOutAds checkOutAds = CheckOutAds({
  final Map checkOutAds_data_create_json = {
    "@type": special_type,
    "ads": (ads != null) ? ads.toJson() : null,
  };

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

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