GoogleCloudDialogflowV2beta1IntentMessageBasicCardResponse.fromMap constructor

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

Implementation

factory GoogleCloudDialogflowV2beta1IntentMessageBasicCardResponse.fromMap(Map<String, dynamic> map) {
  return GoogleCloudDialogflowV2beta1IntentMessageBasicCardResponse(
    buttons: pulumi.Input.fromValue(pulumi.Input.decodeList<GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonResponse>(map['buttons']!, (value) => GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonResponse.fromMap((value as Map).cast<String, dynamic>()))),
    formattedText: pulumi.Input.fromValue(map['formattedText'] as String),
    image: pulumi.Input.fromValue(GoogleCloudDialogflowV2beta1IntentMessageImageResponse.fromMap((map['image']! as Map).cast<String, dynamic>())),
    subtitle: pulumi.Input.fromValue(map['subtitle'] as String),
    title: pulumi.Input.fromValue(map['title'] as String),
  );
}