mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-28 22:35:54 +08:00
Refactor member page (#3)
* refactor: member page * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
This commit is contained in:
20
lib/models/space/article.dart
Normal file
20
lib/models/space/article.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'article.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class Article {
|
||||
int? count;
|
||||
List<dynamic>? item;
|
||||
@JsonKey(name: 'lists_count')
|
||||
int? listsCount;
|
||||
List<dynamic>? lists;
|
||||
|
||||
Article({this.count, this.item, this.listsCount, this.lists});
|
||||
|
||||
factory Article.fromJson(Map<String, dynamic> json) {
|
||||
return _$ArticleFromJson(json);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => _$ArticleToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user