character_page_response.dart 511 B

12345678910111213141516171819
  1. import 'package:json_annotation/json_annotation.dart';
  2. import '../../bean/character_info.dart';
  3. part 'character_page_response.g.dart';
  4. @JsonSerializable()
  5. class CharacterPageResponse {
  6. @JsonKey(name: "count")
  7. late final int count;
  8. @JsonKey(name: "list")
  9. late final List<CharacterInfo> characterInfos;
  10. CharacterPageResponse({required this.count, required this.characterInfos});
  11. factory CharacterPageResponse.fromJson(Map<String, dynamic> json) =>
  12. _$CharacterPageResponseFromJson(json);
  13. }