Revert "lab6 donee"
This reverts commit 7032bc07a73513448ca5ebd3176ea9ed96f83c29.
This commit is contained in:
parent
7032bc07a7
commit
3e2f12f658
@ -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);
|
||||
}
|
@ -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?,
|
||||
|
Loading…
x
Reference in New Issue
Block a user