fix
This commit is contained in:
17
lib/models/image_list_resp.dart
Normal file
17
lib/models/image_list_resp.dart
Normal file
@ -0,0 +1,17 @@
|
||||
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;
|
||||
|
||||
ImageListResp(this.list, this.total);
|
||||
|
||||
factory ImageListResp.fromJson(Map<String, dynamic> json) =>
|
||||
_$ImageListRespFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$ImageListRespToJson(this);
|
||||
}
|
Reference in New Issue
Block a user