Convert JSON files in PHP DTO classes