import 'package:json_annotation/json_annotation.dart'; part 'codeforcer_dto.g.dart'; @JsonSerializable(createToJson: false) class CodeforcersDto { @JsonKey(name: 'result') final List? data; const CodeforcersDto({this.data}); factory CodeforcersDto.fromJson(Map json) => _$CodeforcersDtoFromJson(json); } @JsonSerializable(createToJson: false) class CodeforcerDto { final String? handle; final String? rank; final String? maxRank; final String? titlePhoto; final int? rating; const CodeforcerDto({this.handle, this.rank, this.titlePhoto, this.rating, this.maxRank}); factory CodeforcerDto.fromJson(Map json) => _$CodeforcerDtoFromJson(json); }