I am trying to automatically clone an object without having to instantiate a new one and manually copy every single …