create static method
CallProtocol
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "callProtocol",
- String special_return_type = "callProtocol",
- bool? udp_p2p,
- bool? udp_reflector,
- num? min_layer,
- num? max_layer,
- List<
String> ? library_versions,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static CallProtocol create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "callProtocol",
String special_return_type = "callProtocol",
bool? udp_p2p,
bool? udp_reflector,
num? min_layer,
num? max_layer,
List<String>? library_versions,
}) {
// CallProtocol callProtocol = CallProtocol({
final Map callProtocol_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"udp_p2p": udp_p2p,
"udp_reflector": udp_reflector,
"min_layer": min_layer,
"max_layer": max_layer,
"library_versions": library_versions,
};
callProtocol_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (callProtocol_data_create_json.containsKey(key) == false) {
callProtocol_data_create_json[key] = value;
}
});
}
return CallProtocol(callProtocol_data_create_json);
}