public function transform(Ability $ability)
    {
        return [
            'actions' => $ability->actions,
            'conditions' => $ability->conditions,
            'id' => $ability->id,
            'subject' => $ability->subject,
        ];
    }
public function transform(Ability $ability)
    {
        return [
            'actions' => $ability->actions,
            'conditions' => $ability->conditions,
            'id' => $ability->id,
            'subject' => $ability->subject,
        ];
    }
public function transform ( Ability $ ability ) { return [ 'actions' => $ ability -> actions , 'conditions' => $ ability -> conditions , 'id' => $ ability -> id , 'subject' => $ ability -> subject , ] ; }
Transformer to generate JSON response with Ability data

@param \V8CH\Combine\Core\Models\Ability
@return array
Transformer to generate JSON response with Ability data