IntentSummary.fromJson constructor

IntentSummary.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory IntentSummary.fromJson(Map<String, dynamic> json) {
  return IntentSummary(
    dialogActionType:
        (json['dialogActionType'] as String).toDialogActionType(),
    checkpointLabel: json['checkpointLabel'] as String?,
    confirmationStatus:
        (json['confirmationStatus'] as String?)?.toConfirmationStatus(),
    fulfillmentState:
        (json['fulfillmentState'] as String?)?.toFulfillmentState(),
    intentName: json['intentName'] as String?,
    slotToElicit: json['slotToElicit'] as String?,
    slots: (json['slots'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
  );
}