mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-18 16:16:14 +08:00
21 lines
400 B
Dart
21 lines
400 B
Dart
class Cooperator {
|
|
int? mid;
|
|
String? avatar;
|
|
String? nickName;
|
|
String? role;
|
|
|
|
Cooperator({
|
|
this.mid,
|
|
this.avatar,
|
|
this.nickName,
|
|
this.role,
|
|
});
|
|
|
|
factory Cooperator.fromJson(Map<String, dynamic> json) => Cooperator(
|
|
mid: json['mid'] as int?,
|
|
avatar: json['avatar'] as String?,
|
|
nickName: json['nick_name'] as String?,
|
|
role: json['role'] as String?,
|
|
);
|
|
}
|