mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
17 lines
330 B
Dart
17 lines
330 B
Dart
class Comment {
|
|
int? count;
|
|
bool? forbidden;
|
|
|
|
Comment({this.count, this.forbidden});
|
|
|
|
factory Comment.fromJson(Map<String, dynamic> json) => Comment(
|
|
count: json['count'] as int?,
|
|
forbidden: json['forbidden'] as bool?,
|
|
);
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
'count': count,
|
|
'forbidden': forbidden,
|
|
};
|
|
}
|