create static method

ChatList create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "chatList",
  3. bool special_is_json_scheme_class = true,
  4. String special_return_type = "chatList",
  5. ChatListMain? chat_list_main,
  6. ChatListArchive? chat_list_archive,
  7. ChatListFolder? chat_list_folder,
  8. ChatLists? chat_lists,
})
override

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

Implementation

static ChatList create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "chatList",
  bool special_is_json_scheme_class = true,
  String special_return_type = "chatList",
  ChatListMain? chat_list_main,
  ChatListArchive? chat_list_archive,
  ChatListFolder? chat_list_folder,
  ChatLists? chat_lists,
}) {
  // ChatList chatList = ChatList({
  final Map chatList_data_create_json = {
    "@type": special_type,
    "@is_json_scheme_class": special_is_json_scheme_class,
    "@return_type": special_return_type,
    "chat_list_main": (chat_list_main != null) ? chat_list_main.toJson() : null,
    "chat_list_archive": (chat_list_archive != null) ? chat_list_archive.toJson() : null,
    "chat_list_folder": (chat_list_folder != null) ? chat_list_folder.toJson() : null,
    "chat_lists": (chat_lists != null) ? chat_lists.toJson() : null,
  };

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

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