create static method

UpdateChatReadInbox create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "updateChatReadInbox",
  3. String special_return_type = "update",
  4. num? chat_id,
  5. num? last_read_inbox_message_id,
  6. num? unread_count,
})
override

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

Implementation

static UpdateChatReadInbox create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "updateChatReadInbox",
  String special_return_type = "update",
  num? chat_id,
  num? last_read_inbox_message_id,
  num? unread_count,
}) {
  // UpdateChatReadInbox updateChatReadInbox = UpdateChatReadInbox({
  final Map updateChatReadInbox_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "chat_id": chat_id,
    "last_read_inbox_message_id": last_read_inbox_message_id,
    "unread_count": unread_count,
  };

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

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