Custom deserializable resources are defined by subclassing JSONAPI::Deserializable::Resource and using its DSL.
JSONAPI::Deserializable::Resource
Documentation currently being rewritten.