add torrent api(magnet links)

This commit is contained in:
2025-07-19 18:13:13 +03:00
parent 05311129f3
commit 4ea75db105
18 changed files with 2329 additions and 15 deletions

View File

@@ -45,3 +45,20 @@ class MoviePreviewAdapter extends TypeAdapter<MoviePreview> {
runtimeType == other.runtimeType &&
typeId == other.typeId;
}
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
MoviePreview _$MoviePreviewFromJson(Map<String, dynamic> json) => MoviePreview(
id: json['id'] as String,
title: json['title'] as String,
posterPath: json['posterPath'] as String?,
);
Map<String, dynamic> _$MoviePreviewToJson(MoviePreview instance) =>
<String, dynamic>{
'id': instance.id,
'title': instance.title,
'posterPath': instance.posterPath,
};