mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
22 lines
462 B
Dart
22 lines
462 B
Dart
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);
|
|
}
|