create static method

MessageProperties create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "messageProperties",
  3. String special_return_type = "messageProperties",
  4. bool? can_be_copied_to_secret_chat,
  5. bool? can_be_deleted_only_for_self,
  6. bool? can_be_deleted_for_all_users,
  7. bool? can_be_edited,
  8. bool? can_be_forwarded,
  9. bool? can_be_paid,
  10. bool? can_be_pinned,
  11. bool? can_be_replied,
  12. bool? can_be_replied_in_another_chat,
  13. bool? can_be_saved,
  14. bool? can_be_shared_in_story,
  15. bool? can_edit_media,
  16. bool? can_edit_scheduling_state,
  17. bool? can_get_embedding_code,
  18. bool? can_get_link,
  19. bool? can_get_media_timestamp_links,
  20. bool? can_get_message_thread,
  21. bool? can_get_read_date,
  22. bool? can_get_statistics,
  23. bool? can_get_viewers,
  24. bool? can_recognize_speech,
  25. bool? can_report_chat,
  26. bool? can_report_reactions,
  27. bool? can_report_supergroup_spam,
  28. bool? can_set_fact_check,
  29. bool? need_show_statistics,
})
override

Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual

Implementation

static MessageProperties create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "messageProperties",
  String special_return_type = "messageProperties",
  bool? can_be_copied_to_secret_chat,
  bool? can_be_deleted_only_for_self,
  bool? can_be_deleted_for_all_users,
  bool? can_be_edited,
  bool? can_be_forwarded,
  bool? can_be_paid,
  bool? can_be_pinned,
  bool? can_be_replied,
  bool? can_be_replied_in_another_chat,
  bool? can_be_saved,
  bool? can_be_shared_in_story,
  bool? can_edit_media,
  bool? can_edit_scheduling_state,
  bool? can_get_embedding_code,
  bool? can_get_link,
  bool? can_get_media_timestamp_links,
  bool? can_get_message_thread,
  bool? can_get_read_date,
  bool? can_get_statistics,
  bool? can_get_viewers,
  bool? can_recognize_speech,
  bool? can_report_chat,
  bool? can_report_reactions,
  bool? can_report_supergroup_spam,
  bool? can_set_fact_check,
  bool? need_show_statistics,
}) {
  // MessageProperties messageProperties = MessageProperties({
  final Map messageProperties_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "can_be_copied_to_secret_chat": can_be_copied_to_secret_chat,
    "can_be_deleted_only_for_self": can_be_deleted_only_for_self,
    "can_be_deleted_for_all_users": can_be_deleted_for_all_users,
    "can_be_edited": can_be_edited,
    "can_be_forwarded": can_be_forwarded,
    "can_be_paid": can_be_paid,
    "can_be_pinned": can_be_pinned,
    "can_be_replied": can_be_replied,
    "can_be_replied_in_another_chat": can_be_replied_in_another_chat,
    "can_be_saved": can_be_saved,
    "can_be_shared_in_story": can_be_shared_in_story,
    "can_edit_media": can_edit_media,
    "can_edit_scheduling_state": can_edit_scheduling_state,
    "can_get_embedding_code": can_get_embedding_code,
    "can_get_link": can_get_link,
    "can_get_media_timestamp_links": can_get_media_timestamp_links,
    "can_get_message_thread": can_get_message_thread,
    "can_get_read_date": can_get_read_date,
    "can_get_statistics": can_get_statistics,
    "can_get_viewers": can_get_viewers,
    "can_recognize_speech": can_recognize_speech,
    "can_report_chat": can_report_chat,
    "can_report_reactions": can_report_reactions,
    "can_report_supergroup_spam": can_report_supergroup_spam,
    "can_set_fact_check": can_set_fact_check,
    "need_show_statistics": need_show_statistics,
  };

  messageProperties_data_create_json.removeWhere((key, value) => value == null);

  if (schemeUtilsIsSetDefaultData) {
    defaultData.forEach((key, value) {
      if (messageProperties_data_create_json.containsKey(key) == false) {
        messageProperties_data_create_json[key] = value;
      }
    });
  }
  return MessageProperties(messageProperties_data_create_json);
}