mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-19 00:26:18 +08:00
23 lines
527 B
Dart
23 lines
527 B
Dart
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,
|
|
};
|
|
}
|