class ProfileModel { ProfileModel({ required this.userId, required this.contextId, required this.displayName, this.avatarUrl, this.statusMessage, this.updatedAt, }); final String userId; final String contextId; final String displayName; final String? avatarUrl; final String? statusMessage; final String? updatedAt; factory ProfileModel.fromJson(Map j) { return ProfileModel( userId: j['userId'] as String, contextId: j['contextId'] as String, displayName: j['displayName'] as String, avatarUrl: j['avatarUrl'] as String?, statusMessage: j['statusMessage'] as String?, updatedAt: j['updatedAt'] as String?, ); } }