fixed ResourceSerializer (included also record's @class)