create static method
EditUserStarSubscription
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "editUserStarSubscription",
- String special_return_type = "ok",
- bool? is_tdlib_method,
- num? user_id,
- String? telegram_payment_charge_id,
- bool? is_canceled,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static EditUserStarSubscription create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "editUserStarSubscription",
String special_return_type = "ok",
bool? is_tdlib_method,
num? user_id,
String? telegram_payment_charge_id,
bool? is_canceled,
}) {
// EditUserStarSubscription editUserStarSubscription = EditUserStarSubscription({
final Map editUserStarSubscription_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"is_tdlib_method": is_tdlib_method,
"user_id": user_id,
"telegram_payment_charge_id": telegram_payment_charge_id,
"is_canceled": is_canceled,
};
editUserStarSubscription_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (editUserStarSubscription_data_create_json.containsKey(key) == false) {
editUserStarSubscription_data_create_json[key] = value;
}
});
}
return EditUserStarSubscription(editUserStarSubscription_data_create_json);
}