create static method
ForumTopics
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "forumTopics",
- String special_return_type = "forumTopics",
- num? total_count,
- List<
ForumTopic> ? topics, - num? next_offset_date,
- num? next_offset_message_id,
- num? next_offset_message_thread_id,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static ForumTopics create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "forumTopics",
String special_return_type = "forumTopics",
num? total_count,
List<ForumTopic>? topics,
num? next_offset_date,
num? next_offset_message_id,
num? next_offset_message_thread_id,
}) {
// ForumTopics forumTopics = ForumTopics({
final Map forumTopics_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"total_count": total_count,
"topics": (topics != null) ? topics.toJson() : null,
"next_offset_date": next_offset_date,
"next_offset_message_id": next_offset_message_id,
"next_offset_message_thread_id": next_offset_message_thread_id,
};
forumTopics_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (forumTopics_data_create_json.containsKey(key) == false) {
forumTopics_data_create_json[key] = value;
}
});
}
return ForumTopics(forumTopics_data_create_json);
}