mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-21 17:46:24 +08:00
20 lines
399 B
Dart
20 lines
399 B
Dart
class Owner {
|
|
int? mid;
|
|
String? name;
|
|
String? face;
|
|
|
|
Owner({this.mid, this.name, this.face});
|
|
|
|
factory Owner.fromJson(Map<String, dynamic> json) => Owner(
|
|
mid: json['mid'] as int?,
|
|
name: json['name'] as String?,
|
|
face: json['face'] as String?,
|
|
);
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
'mid': mid,
|
|
'name': name,
|
|
'face': face,
|
|
};
|
|
}
|