toRpcJsonByType<T> function
dynamic
toRpcJsonByType<T>(
- dynamic val
Implementation
dynamic toRpcJsonByType<T>(dynamic val) {
switch (val) {
case TorrentIds():
return val.toRpcJson();
case FileIndices():
return val.toRpcJson();
case ServerErrorCode():
return val.code;
case IdleLimitMode():
return val.code;
case RatioLimitMode():
return val.code;
default:
return val;
}
}