Custom jason encoder

it seems like I have to add @derive to few more models to make the code work.
But how do i check if my custom encoder is working?