toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final dialogActionType = this.dialogActionType;
  final checkpointLabel = this.checkpointLabel;
  final confirmationStatus = this.confirmationStatus;
  final fulfillmentState = this.fulfillmentState;
  final intentName = this.intentName;
  final slotToElicit = this.slotToElicit;
  final slots = this.slots;
  return {
    'dialogActionType': dialogActionType.toValue(),
    if (checkpointLabel != null) 'checkpointLabel': checkpointLabel,
    if (confirmationStatus != null)
      'confirmationStatus': confirmationStatus.toValue(),
    if (fulfillmentState != null)
      'fulfillmentState': fulfillmentState.toValue(),
    if (intentName != null) 'intentName': intentName,
    if (slotToElicit != null) 'slotToElicit': slotToElicit,
    if (slots != null) 'slots': slots,
  };
}