mirror of
				https://gitlab.com/foxixus/neomovies_mobile.git
				synced 2025-10-29 02:38:49 +05:00 
			
		
		
		
	
		
			
	
	
		
			30 lines
		
	
	
		
			605 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
		
		
			
		
	
	
			30 lines
		
	
	
		
			605 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| ![factory-droid[bot]](/assets/img/avatar_default.png)  | import 'package:json_annotation/json_annotation.dart'; | ||
|  | 
 | ||
|  | part 'torrent_item.g.dart'; | ||
|  | 
 | ||
|  | @JsonSerializable() | ||
|  | class TorrentItem { | ||
|  |   final String? title; | ||
|  |   final String? magnetUrl; | ||
|  |   final String? quality; | ||
|  |   final int? seeders; | ||
|  |   final int? leechers; | ||
|  |   final String? size; | ||
|  |   final String? source; | ||
|  |    | ||
|  |   TorrentItem({ | ||
|  |     this.title, | ||
|  |     this.magnetUrl, | ||
|  |     this.quality, | ||
|  |     this.seeders, | ||
|  |     this.leechers, | ||
|  |     this.size, | ||
|  |     this.source, | ||
|  |   }); | ||
|  |    | ||
|  |   factory TorrentItem.fromJson(Map<String, dynamic> json) => | ||
|  |       _$TorrentItemFromJson(json); | ||
|  |    | ||
|  |   Map<String, dynamic> toJson() => _$TorrentItemToJson(this); | ||
|  | } |