static Object getObjectFromJson ( JsonObject jsonObj , Class clazz , Set < Attribute > columns ) { Object obj = KunderaCoreUtils . createNewInstance ( clazz ) ; for ( Attribute column : columns ) { JsonElement value = jsonObj . get ( ( ( AbstractAttribute ) column ) . getJPAColumnName ( ) ) ; setFieldValue ( obj , column , value ) ; } return obj ; }
Gets the object from json .