create static method

GroupCall create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "groupCall",
  3. String special_return_type = "groupCall",
  4. num? id,
  5. num? from_call_id,
  6. String? title,
  7. num? scheduled_start_date,
  8. bool? enabled_start_notification,
  9. bool? is_active,
  10. bool? is_rtmp_stream,
  11. bool? is_joined,
  12. bool? need_rejoin,
  13. bool? can_be_managed,
  14. num? participant_count,
  15. bool? has_hidden_listeners,
  16. bool? loaded_all_participants,
  17. List<GroupCallRecentSpeaker>? recent_speakers,
  18. bool? is_my_video_enabled,
  19. bool? is_my_video_paused,
  20. bool? can_enable_video,
  21. bool? mute_new_participants,
  22. bool? can_toggle_mute_new_participants,
  23. num? record_duration,
  24. bool? is_video_recorded,
  25. 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);
}