mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-21 16:48:43 +00:00
Refactor member page (#3)
* refactor: member page * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
This commit is contained in:
21
lib/models/space_fav/media_list_response.dart
Normal file
21
lib/models/space_fav/media_list_response.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
import 'list.dart';
|
||||
|
||||
part 'media_list_response.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class MediaListResponse {
|
||||
int? count;
|
||||
List<FavList>? list;
|
||||
@JsonKey(name: 'has_more')
|
||||
bool? hasMore;
|
||||
|
||||
MediaListResponse({this.count, this.list, this.hasMore});
|
||||
|
||||
factory MediaListResponse.fromJson(Map<String, dynamic> json) {
|
||||
return _$MediaListResponseFromJson(json);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => _$MediaListResponseToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user