mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 00:56:31 +08:00
23 lines
454 B
Dart
23 lines
454 B
Dart
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,
|
|
};
|
|
}
|