create static method
PushMessageContentInvoice
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "pushMessageContentInvoice",
- String special_return_type = "pushMessageContent",
- String? price,
- bool? is_pinned,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static PushMessageContentInvoice create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "pushMessageContentInvoice",
String special_return_type = "pushMessageContent",
String? price,
bool? is_pinned,
}) {
// PushMessageContentInvoice pushMessageContentInvoice = PushMessageContentInvoice({
final Map pushMessageContentInvoice_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"price": price,
"is_pinned": is_pinned,
};
pushMessageContentInvoice_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (pushMessageContentInvoice_data_create_json.containsKey(key) == false) {
pushMessageContentInvoice_data_create_json[key] = value;
}
});
}
return PushMessageContentInvoice(pushMessageContentInvoice_data_create_json);
}