How to make a animation rotation js.script?

Hello, I have a apple.fbx and want that the apple auto-rotate 360° in my game. The game is a platformer and the apple is a collectable item. How can I make the apple rotate around his axis? Thank you!

transform.RotateAround(transform.position, transform.up, Time.deltaTime * 45f);

Thank you