create static method

GetChatEventLog create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "getChatEventLog",
  3. String special_return_type = "chatEvents",
  4. bool? is_tdlib_method,
  5. num? chat_id,
  6. String? query,
  7. num? from_event_id,
  8. num? limit,
  9. ChatEventLogFilters? filters,
  10. List<num>? user_ids,
})
override

Generate By General Universe Script Dont edit by hand or anything manual

Implementation

static GetChatEventLog create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "getChatEventLog",
  String special_return_type = "chatEvents",
  bool? is_tdlib_method,
  num? chat_id,
  String? query,
  num? from_event_id,
  num? limit,
  ChatEventLogFilters? filters,
  List<num>? user_ids,
}) {
  // GetChatEventLog getChatEventLog = GetChatEventLog({
  final Map getChatEventLog_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "is_tdlib_method": is_tdlib_method,
    "chat_id": chat_id,
    "query": query,
    "from_event_id": from_event_id,
    "limit": limit,
    "filters": (filters != null) ? filters.toJson() : null,
    "user_ids": user_ids,
  };

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

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