GoogleCloudDialogflowV2beta1IntentMessageTableCard.fromMap constructor
GoogleCloudDialogflowV2beta1IntentMessageTableCard.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GoogleCloudDialogflowV2beta1IntentMessageTableCard.fromMap(Map<String, dynamic> map) {
return GoogleCloudDialogflowV2beta1IntentMessageTableCard(
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>()))); })(),
columnProperties: (() { final guardedValue = map['columnProperties']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<GoogleCloudDialogflowV2beta1IntentMessageColumnProperties>(guardedValue, (value) => GoogleCloudDialogflowV2beta1IntentMessageColumnProperties.fromMap((value as Map).cast<String, dynamic>()))); })(),
image: (() { final guardedValue = map['image']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2beta1IntentMessageImage.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
rows: (() { final guardedValue = map['rows']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<GoogleCloudDialogflowV2beta1IntentMessageTableCardRow>(guardedValue, (value) => GoogleCloudDialogflowV2beta1IntentMessageTableCardRow.fromMap((value as Map).cast<String, dynamic>()))); })(),
subtitle: (() { final guardedValue = map['subtitle']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
title: pulumi.Input.fromValue(map['title'] as String),
);
}