class TaskSerializer
  include JSONAPI::Serializer
  attributes :name, :description, :duration, :user_id, :activity_id, :created_at, :updated_at

  cache_options store: Rails.cache, namespace: 'jsonapi-serializer', expires_in: 1.hour
end