Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-17 18:08:55 +08:00
parent 906c21e252
commit 1d4eabb770
58 changed files with 875 additions and 684 deletions

View File

@@ -4,30 +4,30 @@ part 'media.g.dart';
@JsonSerializable()
class Media {
int? score;
@JsonKey(name: 'media_id')
int? mediaId;
String? title;
String? cover;
String? area;
@JsonKey(name: 'type_id')
int? typeId;
@JsonKey(name: 'type_name')
String? typeName;
int? spoiler;
int? score;
@JsonKey(name: 'media_id')
int? mediaId;
String? title;
String? cover;
String? area;
@JsonKey(name: 'type_id')
int? typeId;
@JsonKey(name: 'type_name')
String? typeName;
int? spoiler;
Media({
this.score,
this.mediaId,
this.title,
this.cover,
this.area,
this.typeId,
this.typeName,
this.spoiler,
});
Media({
this.score,
this.mediaId,
this.title,
this.cover,
this.area,
this.typeId,
this.typeName,
this.spoiler,
});
factory Media.fromJson(Map<String, dynamic> json) => _$MediaFromJson(json);
factory Media.fromJson(Map<String, dynamic> json) => _$MediaFromJson(json);
Map<String, dynamic> toJson() => _$MediaToJson(this);
Map<String, dynamic> toJson() => _$MediaToJson(this);
}