| 12345678910111213141516171819 |
- import 'package:json_annotation/json_annotation.dart';
- import '../../bean/character_info.dart';
- part 'character_page_response.g.dart';
- @JsonSerializable()
- class CharacterPageResponse {
- @JsonKey(name: "count")
- late final int count;
- @JsonKey(name: "list")
- late final List<CharacterInfo> characterInfos;
- CharacterPageResponse({required this.count, required this.characterInfos});
- factory CharacterPageResponse.fromJson(Map<String, dynamic> json) =>
- _$CharacterPageResponseFromJson(json);
- }
|