toValue method
Implementation
String toValue() {
switch (this) {
case DialogState.elicitIntent:
return 'ElicitIntent';
case DialogState.confirmIntent:
return 'ConfirmIntent';
case DialogState.elicitSlot:
return 'ElicitSlot';
case DialogState.fulfilled:
return 'Fulfilled';
case DialogState.readyForFulfillment:
return 'ReadyForFulfillment';
case DialogState.failed:
return 'Failed';
}
}