FEditorClassUtils::GetClassPathFromAsset

Gets the object path of the class associated with the specified asset (i.e. the BlueprintGeneratedClass of a Blueprint asset or the BlueprintGeneratedClass asset itself)