toDialogState method

DialogState toDialogState()

Implementation

DialogState toDialogState() {
  switch (this) {
    case 'ElicitIntent':
      return DialogState.elicitIntent;
    case 'ConfirmIntent':
      return DialogState.confirmIntent;
    case 'ElicitSlot':
      return DialogState.elicitSlot;
    case 'Fulfilled':
      return DialogState.fulfilled;
    case 'ReadyForFulfillment':
      return DialogState.readyForFulfillment;
    case 'Failed':
      return DialogState.failed;
  }
  throw Exception('$this is not known in enum DialogState');
}