mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-24 11:06:51 +08:00
21
lib/models_new/emote/emote.dart
Normal file
21
lib/models_new/emote/emote.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
import 'package:PiliPlus/models_new/emote/meta.dart';
|
||||
|
||||
class Emote {
|
||||
String? text;
|
||||
String? url;
|
||||
Meta? meta;
|
||||
|
||||
Emote({
|
||||
this.text,
|
||||
this.url,
|
||||
this.meta,
|
||||
});
|
||||
|
||||
factory Emote.fromJson(Map<String, dynamic> json) => Emote(
|
||||
text: json['text'] as String?,
|
||||
url: json['url'] as String?,
|
||||
meta: json['meta'] == null
|
||||
? null
|
||||
: Meta.fromJson(json['meta'] as Map<String, dynamic>),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user