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

23 lines
520 B
Dart

class LikeIcon {
String? actionUrl;
String? endUrl;
int? id;
String? startUrl;
LikeIcon({this.actionUrl, this.endUrl, this.id, this.startUrl});
factory LikeIcon.fromJson(Map<String, dynamic> json) => LikeIcon(
actionUrl: json['action_url'] as String?,
endUrl: json['end_url'] as String?,
id: json['id'] as int?,
startUrl: json['start_url'] as String?,
);
Map<String, dynamic> toJson() => {
'action_url': actionUrl,
'end_url': endUrl,
'id': id,
'start_url': startUrl,
};
}