create static method

PushMessageContentInvoice create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "pushMessageContentInvoice",
  3. String special_return_type = "pushMessageContent",
  4. String? price,
  5. 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);
}