TorrentRenamePathResponseParam.fromJson constructor

TorrentRenamePathResponseParam.fromJson(
  1. JsonMap rawData
)

Implementation

factory TorrentRenamePathResponseParam.fromJson(JsonMap rawData) {
  return TorrentRenamePathResponseParam(
    id: TorrentId(id: rawData[TorrentRenamePathArgument.id.argName]),
    path: rawData[TorrentRenamePathArgument.path.argName] as String,
    name: rawData[TorrentRenamePathArgument.name.argName] as String,
  );
}