TopicRuleDestinationState.fromMap constructor

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

Implementation

factory TopicRuleDestinationState.fromMap(Map<String, dynamic> map) {
  return TopicRuleDestinationState(
    arn: (() { final guardedValue = map['arn']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    enabled: (() { final guardedValue = map['enabled']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as bool); })(),
    region: (() { final guardedValue = map['region']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    vpcConfiguration: (() { final guardedValue = map['vpcConfiguration']; if (guardedValue == null) return null; return pulumi.Input.fromValue(TopicRuleDestinationVpcConfiguration.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
  );
}