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 toJson() { final map = {}; map['id'] = _id; if (_userProfile != null) { map['userProfile'] = _userProfile?.toJson(); } return map; } void setUserProfile(ChatVibeUserProfile userInfo) { _userProfile = userInfo; } }