mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-25 11:36:45 +08:00
@@ -6,15 +6,19 @@ class MediaListData {
|
||||
int? totalCount;
|
||||
String? nextStartKey;
|
||||
|
||||
MediaListData(
|
||||
{this.mediaList, this.hasMore, this.totalCount, this.nextStartKey});
|
||||
MediaListData({
|
||||
this.mediaList,
|
||||
this.hasMore,
|
||||
this.totalCount,
|
||||
this.nextStartKey,
|
||||
});
|
||||
|
||||
factory MediaListData.fromJson(Map<String, dynamic> json) => MediaListData(
|
||||
mediaList: (json['media_list'] as List<dynamic>?)
|
||||
?.map((e) => MediaListItemModel.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
hasMore: json['has_more'] as bool?,
|
||||
totalCount: json['total_count'] as int?,
|
||||
nextStartKey: json['next_start_key'] as String?,
|
||||
);
|
||||
mediaList: (json['media_list'] as List<dynamic>?)
|
||||
?.map((e) => MediaListItemModel.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
hasMore: json['has_more'] as bool?,
|
||||
totalCount: json['total_count'] as int?,
|
||||
nextStartKey: json['next_start_key'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user