mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-25 04:45:54 +08:00
opt handle res
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
22
lib/models/folder_info/cnt_info.dart
Normal file
22
lib/models/folder_info/cnt_info.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
class CntInfo {
|
||||
int? collect;
|
||||
int? play;
|
||||
int? thumbUp;
|
||||
int? share;
|
||||
|
||||
CntInfo({this.collect, this.play, this.thumbUp, this.share});
|
||||
|
||||
factory CntInfo.fromJson(Map<String, dynamic> json) => CntInfo(
|
||||
collect: json['collect'] as int?,
|
||||
play: json['play'] as int?,
|
||||
thumbUp: json['thumb_up'] as int?,
|
||||
share: json['share'] as int?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'collect': collect,
|
||||
'play': play,
|
||||
'thumb_up': thumbUp,
|
||||
'share': share,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user