class JsonbAccessor::FieldsMap

def initialize(value_fields, typed_and_nested_fields)

def initialize(value_fields, typed_and_nested_fields)
  grouped_fields = extract_typed_and_nested_fields(typed_and_nested_fields)
  nested_fields, typed_fields = grouped_fields.values_at(:nested, :typed)
  self.typed_fields = implicitly_typed_fields(value_fields).merge(typed_fields)
  self.nested_fields = nested_fields
end