My asset pack doesn't work in Unity 2020

So my asset pack works in Unity 2019.4, since it was made there. But in Unity 2020, a few errors appear in the console. Anybody knows how to solve this problem?

Instead of ModelImporter.importMaterials, use ModelImporter.materialImportMode.