character_page_response.dart 552 B

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