create static method
SendCallLog
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "sendCallLog",
- String special_return_type = "ok",
- bool? is_tdlib_method,
- num? call_id,
- InputFile? log_file,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static SendCallLog create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "sendCallLog",
String special_return_type = "ok",
bool? is_tdlib_method,
num? call_id,
InputFile? log_file,
}) {
// SendCallLog sendCallLog = SendCallLog({
final Map sendCallLog_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"is_tdlib_method": is_tdlib_method,
"call_id": call_id,
"log_file": (log_file != null) ? log_file.toJson() : null,
};
sendCallLog_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (sendCallLog_data_create_json.containsKey(key) == false) {
sendCallLog_data_create_json[key] = value;
}
});
}
return SendCallLog(sendCallLog_data_create_json);
}