main
hrxiang 2 years ago
parent 9c5aa56609
commit eb3361c4b3
  1. 6
      lib/src/models/user_info.dart

@ -62,6 +62,9 @@ class UserInfo {
/// 12 /// 12
int? allowVibration; int? allowVibration;
///
int? forbidden;
UserInfo({ UserInfo({
this.publicInfo, this.publicInfo,
this.friendInfo, this.friendInfo,
@ -83,6 +86,7 @@ class UserInfo {
this.allowAddFriend, this.allowAddFriend,
this.allowBeep, this.allowBeep,
this.allowVibration, this.allowVibration,
this.forbidden,
}); });
// UserInfo.self(Map<String, dynamic> json) { // UserInfo.self(Map<String, dynamic> json) {
@ -125,6 +129,7 @@ class UserInfo {
allowAddFriend = json['allowAddFriend']; allowAddFriend = json['allowAddFriend'];
allowBeep = json['allowBeep']; allowBeep = json['allowBeep'];
allowVibration = json['allowVibration']; allowVibration = json['allowVibration'];
forbidden = json['forbidden'];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@ -149,6 +154,7 @@ class UserInfo {
data['allowAddFriend'] = this.allowAddFriend; data['allowAddFriend'] = this.allowAddFriend;
data['allowBeep'] = this.allowBeep; data['allowBeep'] = this.allowBeep;
data['allowVibration'] = this.allowVibration; data['allowVibration'] = this.allowVibration;
data['forbidden'] = this.forbidden;
return data; return data;
} }

Loading…
Cancel
Save