chore: 更新国际化翻译及 UI 组件优化
This commit is contained in:
@@ -113,13 +113,15 @@ class FriendRequestResponse {
|
||||
});
|
||||
|
||||
factory FriendRequestResponse.fromJson(Map<String, dynamic> json) {
|
||||
final rawContent = json['content'] as Map<String, dynamic>?;
|
||||
final content = rawContent?['message'] as String?;
|
||||
return FriendRequestResponse(
|
||||
id: json['id'] as String,
|
||||
sender: UserBasicInfo.fromJson(json['sender'] as Map<String, dynamic>),
|
||||
recipient: UserBasicInfo.fromJson(
|
||||
json['recipient'] as Map<String, dynamic>,
|
||||
),
|
||||
content: json['content'] as String?,
|
||||
content: content,
|
||||
status: json['status'] as String,
|
||||
createdAt: DateTime.parse(json['created_at'] as String),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user