import 'package:json_annotation/json_annotation.dart'; import 'package:momo/models/image_resp.dart'; part 'image_list_resp.g.dart'; @JsonSerializable() class ImageListResp { List list; int total; bool hasNext; ImageListResp(this.list, this.total, this.hasNext); factory ImageListResp.fromJson(Map json) => _$ImageListRespFromJson(json); Map toJson() => _$ImageListRespToJson(this); }