create static method
ChatBoostSource
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "chatBoostSource",
- bool special_is_json_scheme_class = true,
- String special_return_type = "chatBoostSource",
- ChatBoostSourceGiftCode? chat_boost_source_gift_code,
- ChatBoostSourceGiveaway? chat_boost_source_giveaway,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static ChatBoostSource create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "chatBoostSource",
bool special_is_json_scheme_class = true,
String special_return_type = "chatBoostSource",
ChatBoostSourceGiftCode? chat_boost_source_gift_code,
ChatBoostSourceGiveaway? chat_boost_source_giveaway,
ChatBoostSourcePremium? chat_boost_source_premium,
}) {
// ChatBoostSource chatBoostSource = ChatBoostSource({
final Map chatBoostSource_data_create_json = {
"@type": special_type,
"@is_json_scheme_class": special_is_json_scheme_class,
"@return_type": special_return_type,
"chat_boost_source_gift_code": (chat_boost_source_gift_code != null) ? chat_boost_source_gift_code.toJson() : null,
"chat_boost_source_giveaway": (chat_boost_source_giveaway != null) ? chat_boost_source_giveaway.toJson() : null,
"chat_boost_source_premium": (chat_boost_source_premium != null) ? chat_boost_source_premium.toJson() : null,
};
chatBoostSource_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (chatBoostSource_data_create_json.containsKey(key) == false) {
chatBoostSource_data_create_json[key] = value;
}
});
}
return ChatBoostSource(chatBoostSource_data_create_json);
}