# File lib/json/pure/generator.rb, line 95 def self.from_state(opts) case opts when self opts when Hash new(opts) else new end end