Json 2 DTO generates spatie/data-transfer-object objects automatically from json snippets.
Your DTOs then allow you statically type check code that interacts with them.

A Zip file containing the DTOs will be generated

See this issue for information

Input Json
Generated DTO
Created by atymic
Source code on Github