fix: Fixed some issues.

This commit is contained in:
Brett
2023-10-17 16:09:19 +08:00
parent d07495fff6
commit 67251ae7ea
9 changed files with 175 additions and 51 deletions

View File

@@ -114,3 +114,18 @@ class SearchParams {
return data;
}
}
class SearchFriendInfo extends FriendInfo {
late int relationship;
SearchFriendInfo({required this.relationship}) : super();
SearchFriendInfo.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
relationship = json['relationship'];
}
Map<String, dynamic> toJson() {
final data = super.toJson();
data['relationship'] = this.relationship;
return data ?? {};
}
}