func ToState(v interface{}) plan.State {
	return structs.Map(v)
}
ToState creates a new State using reflection on v.
package resource
import (
	"github.com/weaveworks/cluster-api-provider-existinginfra/pkg/plan"
	"github.com/fatih/structs"
)