This commit is contained in:
cxc
2023-02-09 17:07:14 +08:00
parent 1b88c226ad
commit 2aa59649a8
16 changed files with 156 additions and 41 deletions

View File

@ -7,8 +7,9 @@ part 'image_list_resp.g.dart';
class ImageListResp {
List<ImageResp> list;
int total;
bool hasNext;
ImageListResp(this.list, this.total);
ImageListResp(this.list, this.total, this.hasNext);
factory ImageListResp.fromJson(Map<String, dynamic> json) =>
_$ImageListRespFromJson(json);

View File

@ -12,10 +12,12 @@ ImageListResp _$ImageListRespFromJson(Map<String, dynamic> json) =>
.map((e) => ImageResp.fromJson(e as Map<String, dynamic>))
.toList(),
json['total'] as int,
json['hasNext'] as bool,
);
Map<String, dynamic> _$ImageListRespToJson(ImageListResp instance) =>
<String, dynamic>{
'list': instance.list,
'total': instance.total,
'hasNext': instance.hasNext,
};