GooglePrivacyDlpV2PubSubNotification.fromMap constructor
GooglePrivacyDlpV2PubSubNotification.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GooglePrivacyDlpV2PubSubNotification.fromMap(Map<String, dynamic> map) {
return GooglePrivacyDlpV2PubSubNotification(
detailOfMessage: (() { final guardedValue = map['detailOfMessage']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GooglePrivacyDlpV2PubSubNotificationDetailOfMessage.fromValue(guardedValue as String)); })(),
event: (() { final guardedValue = map['event']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GooglePrivacyDlpV2PubSubNotificationEvent.fromValue(guardedValue as String)); })(),
pubsubCondition: (() { final guardedValue = map['pubsubCondition']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GooglePrivacyDlpV2DataProfilePubSubCondition.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
topic: (() { final guardedValue = map['topic']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
);
}