GoogleCloudDialogflowV2beta1IntentMessageBasicCard.fromMap constructor
GoogleCloudDialogflowV2beta1IntentMessageBasicCard.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GoogleCloudDialogflowV2beta1IntentMessageBasicCard.fromMap(Map<String, dynamic> map) {
return GoogleCloudDialogflowV2beta1IntentMessageBasicCard(
buttons: (() { final guardedValue = map['buttons']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton>(guardedValue, (value) => GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton.fromMap((value as Map).cast<String, dynamic>()))); })(),
formattedText: (() { final guardedValue = map['formattedText']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
image: (() { final guardedValue = map['image']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2beta1IntentMessageImage.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
subtitle: (() { final guardedValue = map['subtitle']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
title: (() { final guardedValue = map['title']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
);
}