toValue method
Implementation
String toValue() {
switch (this) {
case EntityType.device:
return 'DEVICE';
case EntityType.service:
return 'SERVICE';
case EntityType.deviceModel:
return 'DEVICE_MODEL';
case EntityType.capability:
return 'CAPABILITY';
case EntityType.state:
return 'STATE';
case EntityType.action:
return 'ACTION';
case EntityType.event:
return 'EVENT';
case EntityType.property:
return 'PROPERTY';
case EntityType.mapping:
return 'MAPPING';
case EntityType.$enum:
return 'ENUM';
}
}