Files
PiliPlus/lib/models/dynamics/opus_detail/like.dart
dom 40fb93f036 refa: article (#757)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-04-26 14:54:22 +08:00

20 lines
405 B
Dart

class Like {
int? count;
bool? forbidden;
bool? status;
Like({this.count, this.forbidden, this.status});
factory Like.fromJson(Map<String, dynamic> json) => Like(
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,
};
}