GetIntentDialogflowV2beta1Result.fromMap constructor
GetIntentDialogflowV2beta1Result.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GetIntentDialogflowV2beta1Result.fromMap(Map<String, dynamic> map) {
return GetIntentDialogflowV2beta1Result(
action: map['action'] as String,
defaultResponsePlatforms: (map['defaultResponsePlatforms'] as List).cast<String>(),
displayName: map['displayName'] as String,
endInteraction: map['endInteraction'] as bool,
events: (map['events'] as List).cast<String>(),
followupIntentInfo: pulumi.Input.decodeList<GoogleCloudDialogflowV2beta1IntentFollowupIntentInfoResponse>(map['followupIntentInfo']!, (value) => GoogleCloudDialogflowV2beta1IntentFollowupIntentInfoResponse.fromMap((value as Map).cast<String, dynamic>())),
inputContextNames: (map['inputContextNames'] as List).cast<String>(),
isFallback: map['isFallback'] as bool,
liveAgentHandoff: map['liveAgentHandoff'] as bool,
messages: pulumi.Input.decodeList<GoogleCloudDialogflowV2beta1IntentMessageResponse>(map['messages']!, (value) => GoogleCloudDialogflowV2beta1IntentMessageResponse.fromMap((value as Map).cast<String, dynamic>())),
mlDisabled: map['mlDisabled'] as bool,
mlEnabled: map['mlEnabled'] as bool,
name: map['name'] as String,
outputContexts: pulumi.Input.decodeList<GoogleCloudDialogflowV2beta1ContextResponse>(map['outputContexts']!, (value) => GoogleCloudDialogflowV2beta1ContextResponse.fromMap((value as Map).cast<String, dynamic>())),
parameters: pulumi.Input.decodeList<GoogleCloudDialogflowV2beta1IntentParameterResponse>(map['parameters']!, (value) => GoogleCloudDialogflowV2beta1IntentParameterResponse.fromMap((value as Map).cast<String, dynamic>())),
parentFollowupIntentName: map['parentFollowupIntentName'] as String,
priority: map['priority'] as int,
resetContexts: map['resetContexts'] as bool,
rootFollowupIntentName: map['rootFollowupIntentName'] as String,
trainingPhrases: pulumi.Input.decodeList<GoogleCloudDialogflowV2beta1IntentTrainingPhraseResponse>(map['trainingPhrases']!, (value) => GoogleCloudDialogflowV2beta1IntentTrainingPhraseResponse.fromMap((value as Map).cast<String, dynamic>())),
webhookState: map['webhookState'] as String,
);
}