GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue.fromMap constructor

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

Implementation

factory GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue.fromMap(Map<String, dynamic> map) {
  return GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue(
    absolute: (() { final guardedValue = map['absolute']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    percentage: (() { final guardedValue = map['percentage']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as int); })(),
  );
}