QChatRoleResource constructor Null safety

const QChatRoleResource()