Files
neomovies-mobile/lib/data/models/torrent.dart

21 lines
436 B
Dart
Raw Normal View History

2025-07-19 18:13:13 +03:00
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,
2025-07-19 20:50:26 +03:00
int? size, // размер в байтах
2025-07-19 18:13:13 +03:00
}) = _Torrent;
factory Torrent.fromJson(Map<String, dynamic> json) => _$TorrentFromJson(json);
}
2025-07-19 20:50:26 +03:00