mirror of
https://gitlab.com/foxixus/neomovies_mobile.git
synced 2025-10-28 17:58:50 +05:00
better
This commit is contained in:
29
lib/data/models/torrent/torrent_item.dart
Normal file
29
lib/data/models/torrent/torrent_item.dart
Normal file
@@ -0,0 +1,29 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user