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 characterInfos; CharacterPageResponse({required this.count, required this.characterInfos}); factory CharacterPageResponse.fromJson(Map json) => _$CharacterPageResponseFromJson(json); }