upload
This commit is contained in:
@ -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);
|
||||
|
@ -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,
|
||||
};
|
||||
|
Reference in New Issue
Block a user