create static method
GetRemoteFile
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "getRemoteFile",
- String special_return_type = "file",
- bool? is_tdlib_method,
- String? remote_file_id,
- FileType? file_type,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static GetRemoteFile create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "getRemoteFile",
String special_return_type = "file",
bool? is_tdlib_method,
String? remote_file_id,
FileType? file_type,
}) {
// GetRemoteFile getRemoteFile = GetRemoteFile({
final Map getRemoteFile_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"is_tdlib_method": is_tdlib_method,
"remote_file_id": remote_file_id,
"file_type": (file_type != null) ? file_type.toJson() : null,
};
getRemoteFile_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (getRemoteFile_data_create_json.containsKey(key) == false) {
getRemoteFile_data_create_json[key] = value;
}
});
}
return GetRemoteFile(getRemoteFile_data_create_json);
}