Generate classes from json