toRpcJson method

JsonMap toRpcJson()

Implementation

JsonMap toRpcJson() => filename != null
    ? {TorrentAddArgument.filename.argName: filename}
    : {TorrentAddArgument.metainfo.argName: base64Encode(metainfo!)};