mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-22 11:41:09 +08:00
@@ -1,29 +0,0 @@
|
||||
class Arc {
|
||||
int? oid;
|
||||
String? bvid;
|
||||
String? pic;
|
||||
String? desc;
|
||||
int? status;
|
||||
int? oidType;
|
||||
int? aid;
|
||||
|
||||
Arc({
|
||||
this.oid,
|
||||
this.bvid,
|
||||
this.pic,
|
||||
this.desc,
|
||||
this.status,
|
||||
this.oidType,
|
||||
this.aid,
|
||||
});
|
||||
|
||||
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?,
|
||||
);
|
||||
}
|
||||
@@ -1,18 +1,13 @@
|
||||
import 'package:PiliPlus/models_new/fav/fav_note/list.dart';
|
||||
import 'package:PiliPlus/models_new/fav/fav_note/page.dart';
|
||||
|
||||
class FavNoteData {
|
||||
List<FavNoteItemModel>? list;
|
||||
Page? page;
|
||||
|
||||
FavNoteData({this.list, this.page});
|
||||
FavNoteData({this.list});
|
||||
|
||||
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>),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
class Page {
|
||||
int? total;
|
||||
int? size;
|
||||
int? num;
|
||||
|
||||
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?,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user