SessionStatsResponseParam.fromJson constructor
SessionStatsResponseParam.fromJson(
- JsonMap rawData
Implementation
factory SessionStatsResponseParam.fromJson(JsonMap rawData) {
return SessionStatsResponseParam(
activeTorrentCount:
rawData[SessionStatArgument.activeTorrentCount.argName] as num,
downloadSpeed: rawData[SessionStatArgument.downloadSpeed.argName] as num,
pausedTorrentCount:
rawData[SessionStatArgument.pausedTorrentCount.argName] as num,
torrentCount: rawData[SessionStatArgument.torrentCount.argName] as num,
uploadSpeed: rawData[SessionStatArgument.uploadSpeed.argName] as num,
cumulativeStats:
Stats.fromJson(rawData[SessionStatArgument.cumulativeStats.argName]),
currentStats:
Stats.fromJson(rawData[SessionStatArgument.currentStats.argName]),
);
}