create static method

SentGift create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "sentGift",
  3. bool special_is_json_scheme_class = true,
  4. String special_return_type = "sentGift",
  5. SentGiftRegular? sent_gift_regular,
  6. SentGiftUpgraded? sent_gift_upgraded,
})
override

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

Implementation

static SentGift create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "sentGift",
  bool special_is_json_scheme_class = true,
  String special_return_type = "sentGift",
  SentGiftRegular? sent_gift_regular,
  SentGiftUpgraded? sent_gift_upgraded,
}) {
  // SentGift sentGift = SentGift({
  final Map sentGift_data_create_json = {
    "@type": special_type,
    "@is_json_scheme_class": special_is_json_scheme_class,
    "@return_type": special_return_type,
    "sent_gift_regular": (sent_gift_regular != null) ? sent_gift_regular.toJson() : null,
    "sent_gift_upgraded": (sent_gift_upgraded != null) ? sent_gift_upgraded.toJson() : null,
  };

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

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