mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: show member article
This commit is contained in:
21
lib/models/space_article/data.dart
Normal file
21
lib/models/space_article/data.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
import 'item.dart';
|
||||
import 'list.dart';
|
||||
|
||||
part 'data.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class Data {
|
||||
int? count;
|
||||
List<Item>? item;
|
||||
@JsonKey(name: 'lists_count')
|
||||
int? listsCount;
|
||||
List<ArticleList>? lists;
|
||||
|
||||
Data({this.count, this.item, this.listsCount, this.lists});
|
||||
|
||||
factory Data.fromJson(Map<String, dynamic> json) => _$DataFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$DataToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user