ARKit Object Detection Help needed

Hii guys… Its my first question in this forum. I am working on ARKit object detection. I wanted to make it a dynamic thing as I am uploading the arObject file to firebase storage to retrieve it later when needed. The problem is when I download it, i cant find a way to use it in the scene. I get it through a web request and there are two options after that. Either I can save the file on persistent data path or I can get it in a byte array. Now is there any way I can make an object file out of it? I have tried deserialization methods but that corrupts the bytes.

Its been many days I am stuck on this. Please help!!

How do you serialize and deserialize it?