diff --git a/lib/src/v2/sync/dto/peers_info.dart b/lib/src/v2/sync/dto/peers_info.dart index 53846dc..c261307 100644 --- a/lib/src/v2/sync/dto/peers_info.dart +++ b/lib/src/v2/sync/dto/peers_info.dart @@ -66,7 +66,7 @@ class PeersInfo { final double? progress; @JsonKey(name: 'relevance') - final int? relevance; + final double? relevance; @JsonKey(name: 'up_speed') final int? upSpeed; diff --git a/lib/src/v2/sync/dto/peers_info.g.dart b/lib/src/v2/sync/dto/peers_info.g.dart index 1940bde..9756f3a 100644 --- a/lib/src/v2/sync/dto/peers_info.g.dart +++ b/lib/src/v2/sync/dto/peers_info.g.dart @@ -20,7 +20,7 @@ PeersInfo _$PeersInfoFromJson(Map json) => PeersInfo( peerIdClient: json['peer_id_client'] as String?, port: json['port'] as int?, progress: (json['progress'] as num?)?.toDouble(), - relevance: json['relevance'] as int?, + relevance: (json['relevance'] as num?)?.toDouble(), upSpeed: json['up_speed'] as int?, uploaded: json['uploaded'] as int?, );