PMU_Salin_Oleg_PIbd-33/lib/data/dtos/codeforcer_dto.dart
gg12 darfren 41b475ed64 lab5
2024-10-02 13:05:39 +04:00

28 lines
744 B
Dart

import 'package:json_annotation/json_annotation.dart';
part 'codeforcer_dto.g.dart';
@JsonSerializable(createToJson: false)
class CodeforcersDto {
@JsonKey(name: 'result')
final List<CodeforcerDto>? data;
const CodeforcersDto({this.data});
factory CodeforcersDto.fromJson(Map<String, dynamic> 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<String, dynamic> json) => _$CodeforcerDtoFromJson(json);
}