DialogAction.fromJson constructor
DialogAction.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DialogAction.fromJson(Map<String, dynamic> json) {
return DialogAction(
type: (json['type'] as String).toDialogActionType(),
fulfillmentState:
(json['fulfillmentState'] as String?)?.toFulfillmentState(),
intentName: json['intentName'] as String?,
message: json['message'] as String?,
messageFormat: (json['messageFormat'] as String?)?.toMessageFormatType(),
slotToElicit: json['slotToElicit'] as String?,
slots: (json['slots'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}