GoogleCloudDialogflowV2IntentMessageTableCard.fromMap constructor

GoogleCloudDialogflowV2IntentMessageTableCard.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory GoogleCloudDialogflowV2IntentMessageTableCard.fromMap(Map<String, dynamic> map) {
  return GoogleCloudDialogflowV2IntentMessageTableCard(
    buttons: (() { final guardedValue = map['buttons']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<GoogleCloudDialogflowV2IntentMessageBasicCardButton>(guardedValue, (value) => GoogleCloudDialogflowV2IntentMessageBasicCardButton.fromMap((value as Map).cast<String, dynamic>()))); })(),
    columnProperties: (() { final guardedValue = map['columnProperties']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<GoogleCloudDialogflowV2IntentMessageColumnProperties>(guardedValue, (value) => GoogleCloudDialogflowV2IntentMessageColumnProperties.fromMap((value 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>())); })(),
    rows: (() { final guardedValue = map['rows']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<GoogleCloudDialogflowV2IntentMessageTableCardRow>(guardedValue, (value) => GoogleCloudDialogflowV2IntentMessageTableCardRow.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),
  );
}