create static method
CallStateReady
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "callStateReady",
- String special_return_type = "callState",
- CallProtocol? protocol,
- List<
CallServer> ? servers, - String? config,
- String? encryption_key,
- List<
String> ? emojis, - bool? allow_p2p,
- String? custom_parameters,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static CallStateReady create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "callStateReady",
String special_return_type = "callState",
CallProtocol? protocol,
List<CallServer>? servers,
String? config,
String? encryption_key,
List<String>? emojis,
bool? allow_p2p,
String? custom_parameters,
}) {
// CallStateReady callStateReady = CallStateReady({
final Map callStateReady_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"protocol": (protocol != null) ? protocol.toJson() : null,
"servers": (servers != null) ? servers.toJson() : null,
"config": config,
"encryption_key": encryption_key,
"emojis": emojis,
"allow_p2p": allow_p2p,
"custom_parameters": custom_parameters,
};
callStateReady_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (callStateReady_data_create_json.containsKey(key) == false) {
callStateReady_data_create_json[key] = value;
}
});
}
return CallStateReady(callStateReady_data_create_json);
}