mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 03:15:14 +08:00
@@ -18,12 +18,12 @@ class Arc {
|
||||
});
|
||||
|
||||
factory Arc.fromJson(Map<String, dynamic> json) => Arc(
|
||||
oid: json['oid'] as int?,
|
||||
bvid: json['bvid'] as String?,
|
||||
pic: json['pic'] as String?,
|
||||
desc: json['desc'] as String?,
|
||||
status: json['status'] as int?,
|
||||
oidType: json['oid_type'] as int?,
|
||||
aid: json['aid'] as int?,
|
||||
);
|
||||
oid: json['oid'] as int?,
|
||||
bvid: json['bvid'] as String?,
|
||||
pic: json['pic'] as String?,
|
||||
desc: json['desc'] as String?,
|
||||
status: json['status'] as int?,
|
||||
oidType: json['oid_type'] as int?,
|
||||
aid: json['aid'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -8,11 +8,11 @@ class FavNoteData {
|
||||
FavNoteData({this.list, this.page});
|
||||
|
||||
factory FavNoteData.fromJson(Map<String, dynamic> json) => FavNoteData(
|
||||
list: (json['list'] as List<dynamic>?)
|
||||
?.map((e) => FavNoteItemModel.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
page: json['page'] == null
|
||||
? null
|
||||
: Page.fromJson(json['page'] as Map<String, dynamic>),
|
||||
);
|
||||
list: (json['list'] as List<dynamic>?)
|
||||
?.map((e) => FavNoteItemModel.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
page: json['page'] == null
|
||||
? null
|
||||
: Page.fromJson(json['page'] as Map<String, dynamic>),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class Page {
|
||||
Page({this.total, this.size, this.num});
|
||||
|
||||
factory Page.fromJson(Map<String, dynamic> json) => Page(
|
||||
total: json['total'] as int?,
|
||||
size: json['size'] as int?,
|
||||
num: json['num'] as int?,
|
||||
);
|
||||
total: json['total'] as int?,
|
||||
size: json['size'] as int?,
|
||||
num: json['num'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user