Need Help Saving game/map

ok another question, my game isnt just an arcade game its an entire thing, so, the trees and alot of other stuff in my game randomly spawn, and the player can add stuff too, like houses, so i was wondering how to make my game able to save the map that users create?