map json into model