aslan-flutter/lib/chatvibe_domain/models/res/message_friend_user_res.dart
2026-07-01 18:25:58 +08:00

40 lines
857 B
Dart

import 'package:aslan/chatvibe_domain/models/res/login_res.dart';
class MessageFriendUserRes{
ChatVibeLoginRes({
String? id,
ChatVibeUserProfile? userProfile,
}) {
_userProfile = userProfile;
_id = id;
}
MessageFriendUserRes.fromJson(dynamic json) {
_id = json['id'];
_userProfile =
json['userProfile'] != null
? ChatVibeUserProfile.fromJson(json['userProfile'])
: null;
}
ChatVibeUserProfile? _userProfile;
String? _id;
String? get id => _id;
ChatVibeUserProfile? get userProfile => _userProfile;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['id'] = _id;
if (_userProfile != null) {
map['userProfile'] = _userProfile?.toJson();
}
return map;
}
void setUserProfile(ChatVibeUserProfile userInfo) {
_userProfile = userInfo;
}
}