RuleGroupRuleStatement.fromMap constructor

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

Implementation

factory RuleGroupRuleStatement.fromMap(Map<String, dynamic> map) {
  return RuleGroupRuleStatement(
    andStatement: (() { final guardedValue = map['andStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(RuleGroupRuleStatementAndStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    asnMatchStatement: (() { final guardedValue = map['asnMatchStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(RuleGroupRuleStatementAsnMatchStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    byteMatchStatement: (() { final guardedValue = map['byteMatchStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(RuleGroupRuleStatementByteMatchStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    geoMatchStatement: (() { final guardedValue = map['geoMatchStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(RuleGroupRuleStatementGeoMatchStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    ipSetReferenceStatement: (() { final guardedValue = map['ipSetReferenceStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(RuleGroupRuleStatementIpSetReferenceStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    labelMatchStatement: (() { final guardedValue = map['labelMatchStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(RuleGroupRuleStatementLabelMatchStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    notStatement: (() { final guardedValue = map['notStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(RuleGroupRuleStatementNotStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    orStatement: (() { final guardedValue = map['orStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(RuleGroupRuleStatementOrStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    rateBasedStatement: (() { final guardedValue = map['rateBasedStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(RuleGroupRuleStatementRateBasedStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    regexMatchStatement: (() { final guardedValue = map['regexMatchStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(RuleGroupRuleStatementRegexMatchStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    regexPatternSetReferenceStatement: (() { final guardedValue = map['regexPatternSetReferenceStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(RuleGroupRuleStatementRegexPatternSetReferenceStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    sizeConstraintStatement: (() { final guardedValue = map['sizeConstraintStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(RuleGroupRuleStatementSizeConstraintStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    sqliMatchStatement: (() { final guardedValue = map['sqliMatchStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(RuleGroupRuleStatementSqliMatchStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    xssMatchStatement: (() { final guardedValue = map['xssMatchStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(RuleGroupRuleStatementXssMatchStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
  );
}