create static method
GroupCall
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "groupCall",
- String special_return_type = "groupCall",
- num? id,
- num? from_call_id,
- String? title,
- num? scheduled_start_date,
- bool? enabled_start_notification,
- bool? is_active,
- bool? is_rtmp_stream,
- bool? is_joined,
- bool? need_rejoin,
- bool? can_be_managed,
- num? participant_count,
- bool? loaded_all_participants,
- List<
GroupCallRecentSpeaker> ? recent_speakers, - bool? is_my_video_enabled,
- bool? is_my_video_paused,
- bool? can_enable_video,
- bool? mute_new_participants,
- bool? can_toggle_mute_new_participants,
- num? record_duration,
- bool? is_video_recorded,
- num? duration,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static GroupCall create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "groupCall",
String special_return_type = "groupCall",
num? id,
num? from_call_id,
String? title,
num? scheduled_start_date,
bool? enabled_start_notification,
bool? is_active,
bool? is_rtmp_stream,
bool? is_joined,
bool? need_rejoin,
bool? can_be_managed,
num? participant_count,
bool? has_hidden_listeners,
bool? loaded_all_participants,
List<GroupCallRecentSpeaker>? recent_speakers,
bool? is_my_video_enabled,
bool? is_my_video_paused,
bool? can_enable_video,
bool? mute_new_participants,
bool? can_toggle_mute_new_participants,
num? record_duration,
bool? is_video_recorded,
num? duration,
}) {
// GroupCall groupCall = GroupCall({
final Map groupCall_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"id": id,
"from_call_id": from_call_id,
"title": title,
"scheduled_start_date": scheduled_start_date,
"enabled_start_notification": enabled_start_notification,
"is_active": is_active,
"is_rtmp_stream": is_rtmp_stream,
"is_joined": is_joined,
"need_rejoin": need_rejoin,
"can_be_managed": can_be_managed,
"participant_count": participant_count,
"has_hidden_listeners": has_hidden_listeners,
"loaded_all_participants": loaded_all_participants,
"recent_speakers": (recent_speakers != null) ? recent_speakers.toJson() : null,
"is_my_video_enabled": is_my_video_enabled,
"is_my_video_paused": is_my_video_paused,
"can_enable_video": can_enable_video,
"mute_new_participants": mute_new_participants,
"can_toggle_mute_new_participants": can_toggle_mute_new_participants,
"record_duration": record_duration,
"is_video_recorded": is_video_recorded,
"duration": duration,
};
groupCall_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (groupCall_data_create_json.containsKey(key) == false) {
groupCall_data_create_json[key] = value;
}
});
}
return GroupCall(groupCall_data_create_json);
}