create static method
PaymentForm
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "paymentForm",
- String special_return_type = "paymentForm",
- num? id,
- PaymentFormType? type,
- num? seller_bot_user_id,
- ProductInfo? product_info,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static PaymentForm create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "paymentForm",
String special_return_type = "paymentForm",
num? id,
PaymentFormType? type,
num? seller_bot_user_id,
ProductInfo? product_info,
}) {
// PaymentForm paymentForm = PaymentForm({
final Map paymentForm_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"id": id,
"type": (type != null) ? type.toJson() : null,
"seller_bot_user_id": seller_bot_user_id,
"product_info": (product_info != null) ? product_info.toJson() : null,
};
paymentForm_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (paymentForm_data_create_json.containsKey(key) == false) {
paymentForm_data_create_json[key] = value;
}
});
}
return PaymentForm(paymentForm_data_create_json);
}