module JSONAPI::Serialization::AttributesDeserialization

def attributes

def attributes
  attrs = extract_attributes_from_params
  attrs = attrs.transform_keys(&:to_sym) if attrs.respond_to?(:transform_keys)
  permitted_attrs = permitted_attributes_for_action
  attrs.slice(*permitted_attrs)
end