mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-24 19:16:44 +08:00
refa: article (#757)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
22
lib/models/dynamics/opus_detail/like_icon.dart
Normal file
22
lib/models/dynamics/opus_detail/like_icon.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
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,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user