PHP 8.0 - Resource object serialize library

Want to share with you some code that I was working on.
In PHP 8.0 was introduced new Attributes feature. Metadata can be added to class’s method or properties using the attriubutes. Library uses it to map PHP properties and method to JSON:API fields ( attributes or relationships ).

Would like too hear your opinion about the library and how it can be improved.

Gonna use it for my next JSON:API project.