create static method

GetForumTopics create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "getForumTopics",
  3. String special_return_type = "forumTopics",
  4. bool? is_tdlib_method,
  5. num? chat_id,
  6. String? query,
  7. num? offset_date,
  8. num? offset_message_id,
  9. num? offset_message_thread_id,
  10. num? limit,
})
override

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

Implementation

static GetForumTopics create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "getForumTopics",
  String special_return_type = "forumTopics",
  bool? is_tdlib_method,
  num? chat_id,
  String? query,
  num? offset_date,
  num? offset_message_id,
  num? offset_message_thread_id,
  num? limit,
}) {
  // GetForumTopics getForumTopics = GetForumTopics({
  final Map getForumTopics_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "is_tdlib_method": is_tdlib_method,
    "chat_id": chat_id,
    "query": query,
    "offset_date": offset_date,
    "offset_message_id": offset_message_id,
    "offset_message_thread_id": offset_message_thread_id,
    "limit": limit,
  };

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

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