GetIntentResult.fromMap constructor
GetIntentResult.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GetIntentResult.fromMap(Map<String, dynamic> map) {
return GetIntentResult(
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<GoogleCloudDialogflowV2IntentFollowupIntentInfoResponse>(map['followupIntentInfo']!, (value) => GoogleCloudDialogflowV2IntentFollowupIntentInfoResponse.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<GoogleCloudDialogflowV2IntentMessageResponse>(map['messages']!, (value) => GoogleCloudDialogflowV2IntentMessageResponse.fromMap((value as Map).cast<String, dynamic>())),
mlDisabled: map['mlDisabled'] as bool,
name: map['name'] as String,
outputContexts: pulumi.Input.decodeList<GoogleCloudDialogflowV2ContextResponse>(map['outputContexts']!, (value) => GoogleCloudDialogflowV2ContextResponse.fromMap((value as Map).cast<String, dynamic>())),
parameters: pulumi.Input.decodeList<GoogleCloudDialogflowV2IntentParameterResponse>(map['parameters']!, (value) => GoogleCloudDialogflowV2IntentParameterResponse.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<GoogleCloudDialogflowV2IntentTrainingPhraseResponse>(map['trainingPhrases']!, (value) => GoogleCloudDialogflowV2IntentTrainingPhraseResponse.fromMap((value as Map).cast<String, dynamic>())),
webhookState: map['webhookState'] as String,
);
}