toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'gid': gid,
    'status': status,
    'totalLength': totalLength,
    'completedLength': completedLength,
    'uploadLength': uploadLength,
    'bitfield': bitfield,
    'downloadSpeed': downloadSpeed,
    'uploadSpeed': uploadSpeed,
    'connections': connections,
    'infoHash': infoHash,
    'numSeeders': numSeeders,
    'seeder': seeder,
    'pieceLength': pieceLength,
    'numPieces': numPieces,
    'errorCode': errorCode,
    'errorMessage': errorMessage,
    'followedBy': followedBy,
    'following': following,
    'belongsTo': belongsTo,
    'dir': dir,
    'files': files,
    'bittorrent': bittorrent,
    'verifiedLength': verifiedLength,
    'verifyIntegrityPending': verifyIntegrityPending,
  };
}