public void setType(string chars)
 {
     HomeAutomationDeviceTypeJSON.TypeValueKnownValues known     = HomeAutomationDeviceTypeJSON.stringToValue(chars);
     HomeAutomationDeviceTypeJSON.TypeValue            new_value = new HomeAutomationDeviceTypeJSON.TypeValue();
     if (known == HomeAutomationDeviceTypeJSON.TypeValueKnownValues.Value__none)
     {
         new_value.in_known_list = false;
         new_value.string_value  = chars;
     }
     else
     {
         new_value.in_known_list = true;
         new_value.list_value    = known;
     }
     setType(new_value);
 }
 public void setType(HomeAutomationDeviceTypeJSON.TypeValue new_value)
 {
     setType(new HomeAutomationDeviceTypeJSON(new_value));
 }