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:
39
lib/models/dynamics/opus_detail/basic.dart
Normal file
39
lib/models/dynamics/opus_detail/basic.dart
Normal file
@@ -0,0 +1,39 @@
|
||||
import 'like_icon.dart';
|
||||
|
||||
class Basic {
|
||||
String? commentIdStr;
|
||||
int? commentType;
|
||||
LikeIcon? likeIcon;
|
||||
String? ridStr;
|
||||
String? title;
|
||||
int? uid;
|
||||
|
||||
Basic({
|
||||
this.commentIdStr,
|
||||
this.commentType,
|
||||
this.likeIcon,
|
||||
this.ridStr,
|
||||
this.title,
|
||||
this.uid,
|
||||
});
|
||||
|
||||
factory Basic.fromJson(Map<String, dynamic> json) => Basic(
|
||||
commentIdStr: json['comment_id_str'] as String?,
|
||||
commentType: json['comment_type'] as int?,
|
||||
likeIcon: json['like_icon'] == null
|
||||
? null
|
||||
: LikeIcon.fromJson(json['like_icon'] as Map<String, dynamic>),
|
||||
ridStr: json['rid_str'] as String?,
|
||||
title: json['title'] as String?,
|
||||
uid: json['uid'] as int?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'comment_id_str': commentIdStr,
|
||||
'comment_type': commentType,
|
||||
'like_icon': likeIcon?.toJson(),
|
||||
'rid_str': ridStr,
|
||||
'title': title,
|
||||
'uid': uid,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user