mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-22 18:16:54 +08:00
refa: article (#757)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
31
lib/models/dynamics/opus_detail/rich.dart
Normal file
31
lib/models/dynamics/opus_detail/rich.dart
Normal file
@@ -0,0 +1,31 @@
|
||||
import 'style.dart';
|
||||
|
||||
class Rich {
|
||||
Style? style;
|
||||
String? jumpUrl;
|
||||
String? origText;
|
||||
String? text;
|
||||
|
||||
Rich({
|
||||
this.style,
|
||||
this.jumpUrl,
|
||||
this.origText,
|
||||
this.text,
|
||||
});
|
||||
|
||||
factory Rich.fromJson(Map<String, dynamic> json) => Rich(
|
||||
style: json['style'] == null
|
||||
? null
|
||||
: Style.fromJson(json['style'] as Map<String, dynamic>),
|
||||
jumpUrl: json['jump_url'] as String?,
|
||||
origText: json['orig_text'] as String?,
|
||||
text: json['text'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'style': style?.toJson(),
|
||||
'jump_url': jumpUrl,
|
||||
'orig_text': origText,
|
||||
'text': text,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user