use from json to model