feat: show member article

This commit is contained in:
bggRGjQaUbCoE
2024-10-19 10:38:29 +08:00
parent 8c26ef4ff6
commit d04a72c462
34 changed files with 1098 additions and 8 deletions

View File

@@ -0,0 +1,33 @@
import 'package:json_annotation/json_annotation.dart';
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;
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);
Map<String, dynamic> toJson() => _$MediaToJson(this);
}