BudgetNotification.fromMap constructor

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

Implementation

factory BudgetNotification.fromMap(Map<String, dynamic> map) {
  return BudgetNotification(
    comparisonOperator: pulumi.Input.fromValue(map['comparisonOperator'] as String),
    notificationType: pulumi.Input.fromValue(map['notificationType'] as String),
    subscriberEmailAddresses: (() { final guardedValue = map['subscriberEmailAddresses']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as List).cast<String>()); })(),
    subscriberSnsTopicArns: (() { final guardedValue = map['subscriberSnsTopicArns']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as List).cast<String>()); })(),
    threshold: pulumi.Input.fromValue((map['threshold'] as num).toDouble()),
    thresholdType: pulumi.Input.fromValue(map['thresholdType'] as String),
  );
}