mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
refa: article (#757)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
19
lib/models/dynamics/opus_detail/favorite.dart
Normal file
19
lib/models/dynamics/opus_detail/favorite.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
class Favorite {
|
||||
int? count;
|
||||
bool? forbidden;
|
||||
bool? status;
|
||||
|
||||
Favorite({this.count, this.forbidden, this.status});
|
||||
|
||||
factory Favorite.fromJson(Map<String, dynamic> json) => Favorite(
|
||||
count: json['count'] as int?,
|
||||
forbidden: json['forbidden'] as bool?,
|
||||
status: json['status'] as bool?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'count': count,
|
||||
'forbidden': forbidden,
|
||||
'status': status,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user