GoogleCloudDialogflowV2beta1IntentMessageCard.fromMap constructor
GoogleCloudDialogflowV2beta1IntentMessageCard.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GoogleCloudDialogflowV2beta1IntentMessageCard.fromMap(Map<String, dynamic> map) {
return GoogleCloudDialogflowV2beta1IntentMessageCard(
buttons: (() { final guardedValue = map['buttons']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<GoogleCloudDialogflowV2beta1IntentMessageCardButton>(guardedValue, (value) => GoogleCloudDialogflowV2beta1IntentMessageCardButton.fromMap((value as Map).cast<String, dynamic>()))); })(),
imageUri: (() { final guardedValue = map['imageUri']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
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); })(),
);
}