mirror of
https://gitlab.com/foxixus/neomovies_mobile.git
synced 2025-10-28 01:18:50 +05:00
add torrent api(magnet links)
This commit is contained in:
18
lib/data/models/torrent.dart
Normal file
18
lib/data/models/torrent.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'torrent.freezed.dart';
|
||||
part 'torrent.g.dart';
|
||||
|
||||
@freezed
|
||||
class Torrent with _$Torrent {
|
||||
const factory Torrent({
|
||||
required String magnet,
|
||||
String? title,
|
||||
String? name,
|
||||
String? quality,
|
||||
int? seeders,
|
||||
@JsonKey(name: 'size_gb') double? sizeGb,
|
||||
}) = _Torrent;
|
||||
|
||||
factory Torrent.fromJson(Map<String, dynamic> json) => _$TorrentFromJson(json);
|
||||
}
|
||||
Reference in New Issue
Block a user