mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-10 03:57:49 +08:00
refa: article (#757)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
22
lib/models/dynamics/opus_detail/style.dart
Normal file
22
lib/models/dynamics/opus_detail/style.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
class Style {
|
||||
Style({
|
||||
this.bold,
|
||||
this.italic,
|
||||
this.strikethrough,
|
||||
});
|
||||
bool? bold;
|
||||
bool? italic;
|
||||
bool? strikethrough;
|
||||
|
||||
factory Style.fromJson(Map<String, dynamic> json) => Style(
|
||||
bold: json['bold'],
|
||||
italic: json['italic'],
|
||||
strikethrough: json['strikethrough'],
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'bold': bold,
|
||||
'italic': italic,
|
||||
'strikethrough': strikethrough,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user