Store Horizontal/Vertical Arrangement !!

Store Any arrangement like Horizontal Otherwise vertical arrangement store in firebase data. Is this possible ?
I want to store full arrangement. If yes, then tell me , how can i store ?

what will be present inside arrangements??

It’s generally a bad idea to store UI elements in a database. You’ll be storing unnecessary layout and style overhead in the db. Instead, you should store the data that the UI elements represent. You’ll be storing only what you need, preferably in a standard serialised format (JSON, CSV, etc.), which will simplify development in the long run