Files
momo/lib/models/image_list_resp.dart
2023-02-09 17:07:14 +08:00

19 lines
452 B
Dart

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