mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
24 lines
444 B
Dart
24 lines
444 B
Dart
class TopicCreator {
|
|
int? uid;
|
|
String? face;
|
|
String? name;
|
|
|
|
TopicCreator({
|
|
this.uid,
|
|
this.face,
|
|
this.name,
|
|
});
|
|
|
|
factory TopicCreator.fromJson(Map<String, dynamic> json) => TopicCreator(
|
|
uid: json['uid'] as int?,
|
|
face: json['face'] as String?,
|
|
name: json['name'] as String?,
|
|
);
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
'uid': uid,
|
|
'face': face,
|
|
'name': name,
|
|
};
|
|
}
|