Quick and dirty JsonSerializable

Quick and dirty JsonSerializable 5.00/5 (100.00%) 1 vote

Sometimes it’s necessary to implement JsonSerializable without writing by hand every variable (protected and not) present in class. There is a small shortcut to it:

 

You may also like...

Lascia un Commento

L'indirizzo email non verrà pubblicato. I campi obbligatori sono contrassegnati *

È possibile utilizzare questi tag ed attributi XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">