mirror of
https://gitlab.com/foxixus/neomovies_mobile.git
synced 2025-10-27 22:38:50 +05:00
add torrent api(magnet links)
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import 'package:hive/hive.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'movie_preview.g.dart';
|
||||
|
||||
@HiveType(typeId: 1) // Use a new typeId to avoid conflicts with Movie
|
||||
@JsonSerializable()
|
||||
class MoviePreview extends HiveObject {
|
||||
@HiveField(0)
|
||||
final String id;
|
||||
@@ -18,4 +20,7 @@ class MoviePreview extends HiveObject {
|
||||
required this.title,
|
||||
this.posterPath,
|
||||
});
|
||||
|
||||
factory MoviePreview.fromJson(Map<String, dynamic> json) => _$MoviePreviewFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$MoviePreviewToJson(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user