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