Fix object from serialized data. The default implementation handles deserialization of id and username.