check method
Implementation
@override
String? check() {
final notAllowedChecker = RequestParamArgsChecker<TorrentSetArgument>(
label: "$runtimeType.prohibited",
fields: TorrentSetArgument.allFieldsSet.difference(allowedFields),
failedChecker: (f) => _args.getValueByArgument(f) != null);
final deprecatedChecker = RequestParamArgsChecker<TorrentSetArgument>(
label: "$runtimeType.deprecated",
fields: deprecatedFields,
failedChecker: (f) => _args.getValueByArgument(f) != null);
return RequestParam.buildCheckResult([
notAllowedChecker.check(),
deprecatedChecker.check(),
]);
}