GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject.fromMap constructor

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

Implementation

factory GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject.fromMap(Map<String, dynamic> map) {
  return GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject(
    contentUrl: pulumi.Input.fromValue(map['contentUrl'] as String),
    description: (() { final guardedValue = map['description']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    icon: (() { final guardedValue = map['icon']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2IntentMessageImage.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    largeImage: (() { final guardedValue = map['largeImage']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2IntentMessageImage.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    name: pulumi.Input.fromValue(map['name'] as String),
  );
}