Revert "lab6 donee"

This reverts commit 7032bc07a73513448ca5ebd3176ea9ed96f83c29.
This commit is contained in:
Dasha 2024-12-07 23:56:09 +04:00
parent 7032bc07a7
commit 3e2f12f658
2 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class CatDataDto {
final String? origin;
final String? length;
const CatDataDto({this.imageLink, this.name, this.origin, this.length});
const CatDataDto({this.id, this.imageLink, this.name, this.origin, this.length});
factory CatDataDto.fromJson(Map<String, dynamic> json) => _$CatDataDtoFromJson(json);
}

View File

@ -13,6 +13,7 @@ CatsDto _$CatsDtoFromJson(List<dynamic> json) => CatsDto(
);
CatDataDto _$CatDataDtoFromJson(Map<String, dynamic> json) => CatDataDto(
id: json['id'] as String?,
imageLink: json['image_link'] as String?,
name: json['name'] as String?,
origin: json['origin'] as String?,