method

from_state

ruby latest stable - Class: JSON::Ext::Generator::State
from_state(p1)
public

Creates a State object from opts, which ought to be Hash to create a new State instance configured by opts, something else to create an unconfigured instance. If opts is a State object, it is just returned.