GoogleCloudDialogflowV2IntentMessage.fromMap constructor
GoogleCloudDialogflowV2IntentMessage.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GoogleCloudDialogflowV2IntentMessage.fromMap(Map<String, dynamic> map) {
return GoogleCloudDialogflowV2IntentMessage(
basicCard: (() { final guardedValue = map['basicCard']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2IntentMessageBasicCard.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
browseCarouselCard: (() { final guardedValue = map['browseCarouselCard']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
card: (() { final guardedValue = map['card']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2IntentMessageCard.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
carouselSelect: (() { final guardedValue = map['carouselSelect']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2IntentMessageCarouselSelect.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
image: (() { final guardedValue = map['image']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2IntentMessageImage.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
linkOutSuggestion: (() { final guardedValue = map['linkOutSuggestion']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
listSelect: (() { final guardedValue = map['listSelect']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2IntentMessageListSelect.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
mediaContent: (() { final guardedValue = map['mediaContent']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2IntentMessageMediaContent.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
payload: (() { final guardedValue = map['payload']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as Map).cast<String, String>()); })(),
platform: (() { final guardedValue = map['platform']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2IntentMessagePlatform.fromValue(guardedValue as String)); })(),
quickReplies: (() { final guardedValue = map['quickReplies']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2IntentMessageQuickReplies.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
simpleResponses: (() { final guardedValue = map['simpleResponses']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2IntentMessageSimpleResponses.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
suggestions: (() { final guardedValue = map['suggestions']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2IntentMessageSuggestions.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
tableCard: (() { final guardedValue = map['tableCard']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2IntentMessageTableCard.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
text: (() { final guardedValue = map['text']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2IntentMessageText.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
);
}