create static method
VideoChat
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "videoChat",
- String special_return_type = "videoChat",
- num? group_call_id,
- bool? has_participants,
- MessageSender? default_participant_id,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static VideoChat create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "videoChat",
String special_return_type = "videoChat",
num? group_call_id,
bool? has_participants,
MessageSender? default_participant_id,
}) {
// VideoChat videoChat = VideoChat({
final Map videoChat_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"group_call_id": group_call_id,
"has_participants": has_participants,
"default_participant_id": (default_participant_id != null) ? default_participant_id.toJson() : null,
};
videoChat_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (videoChat_data_create_json.containsKey(key) == false) {
videoChat_data_create_json[key] = value;
}
});
}
return VideoChat(videoChat_data_create_json);
}