mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-22 03:31:09 +08:00
@@ -6,8 +6,8 @@ class Author {
|
||||
Author({this.name, this.face, this.mid});
|
||||
|
||||
factory Author.fromJson(Map<String, dynamic> json) => Author(
|
||||
name: json['name'] as String?,
|
||||
face: json['face'] as String?,
|
||||
mid: json['mid'] as String?,
|
||||
);
|
||||
name: json['name'] as String?,
|
||||
face: json['face'] as String?,
|
||||
mid: json['mid'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class Cover {
|
||||
Cover({this.url, this.width, this.height});
|
||||
|
||||
factory Cover.fromJson(Map<String, dynamic> json) => Cover(
|
||||
url: json['url'] as String?,
|
||||
width: json['width'] as int?,
|
||||
height: json['height'] as int?,
|
||||
);
|
||||
url: json['url'] as String?,
|
||||
width: json['width'] as int?,
|
||||
height: json['height'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -16,13 +16,12 @@ class FavArticleData {
|
||||
});
|
||||
|
||||
factory FavArticleData.fromJson(Map<String, dynamic> json) => FavArticleData(
|
||||
items: (json['items'] as List<dynamic>?)
|
||||
?.map(
|
||||
(e) => FavArticleItemModel.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
hasMore: json['has_more'] as bool?,
|
||||
offset: json['offset'] as String?,
|
||||
updateNum: json['update_num'] as String?,
|
||||
updateBaseline: json['update_baseline'] as String?,
|
||||
);
|
||||
items: (json['items'] as List<dynamic>?)
|
||||
?.map((e) => FavArticleItemModel.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
hasMore: json['has_more'] as bool?,
|
||||
offset: json['offset'] as String?,
|
||||
updateNum: json['update_num'] as String?,
|
||||
updateBaseline: json['update_baseline'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ class Stat {
|
||||
Stat({this.view, this.like});
|
||||
|
||||
factory Stat.fromJson(Map<String, dynamic> json) => Stat(
|
||||
view: json['view'] as String?,
|
||||
like: json['like'] as String?,
|
||||
);
|
||||
view: json['view'] as String?,
|
||||
like: json['like'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user