module JsonbAccessor::ClassBuilder

def generate_new_class(new_class_name, fields_map, namespace)

def generate_new_class(new_class_name, fields_map, namespace)
  klass = Class.new(NestedBase)
  new_class_name_camelized = generate_constant_name(new_class_name)
  namespace.const_set(new_class_name_camelized, klass)
end