create static method
SentGiftRegular
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "sentGiftRegular",
- String special_return_type = "sentGift",
- Gift? gift,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static SentGiftRegular create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "sentGiftRegular",
String special_return_type = "sentGift",
Gift? gift,
}) {
// SentGiftRegular sentGiftRegular = SentGiftRegular({
final Map sentGiftRegular_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"gift": (gift != null) ? gift.toJson() : null,
};
sentGiftRegular_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (sentGiftRegular_data_create_json.containsKey(key) == false) {
sentGiftRegular_data_create_json[key] = value;
}
});
}
return SentGiftRegular(sentGiftRegular_data_create_json);
}