Statement.fromJson constructor

Statement.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Statement.fromJson(Map<String, dynamic> json) {
  return Statement(
    andStatement: json['AndStatement'] != null
        ? AndStatement.fromJson(json['AndStatement'] as Map<String, dynamic>)
        : null,
    byteMatchStatement: json['ByteMatchStatement'] != null
        ? ByteMatchStatement.fromJson(
            json['ByteMatchStatement'] as Map<String, dynamic>)
        : null,
    geoMatchStatement: json['GeoMatchStatement'] != null
        ? GeoMatchStatement.fromJson(
            json['GeoMatchStatement'] as Map<String, dynamic>)
        : null,
    iPSetReferenceStatement: json['IPSetReferenceStatement'] != null
        ? IPSetReferenceStatement.fromJson(
            json['IPSetReferenceStatement'] as Map<String, dynamic>)
        : null,
    managedRuleGroupStatement: json['ManagedRuleGroupStatement'] != null
        ? ManagedRuleGroupStatement.fromJson(
            json['ManagedRuleGroupStatement'] as Map<String, dynamic>)
        : null,
    notStatement: json['NotStatement'] != null
        ? NotStatement.fromJson(json['NotStatement'] as Map<String, dynamic>)
        : null,
    orStatement: json['OrStatement'] != null
        ? OrStatement.fromJson(json['OrStatement'] as Map<String, dynamic>)
        : null,
    rateBasedStatement: json['RateBasedStatement'] != null
        ? RateBasedStatement.fromJson(
            json['RateBasedStatement'] as Map<String, dynamic>)
        : null,
    regexPatternSetReferenceStatement:
        json['RegexPatternSetReferenceStatement'] != null
            ? RegexPatternSetReferenceStatement.fromJson(
                json['RegexPatternSetReferenceStatement']
                    as Map<String, dynamic>)
            : null,
    ruleGroupReferenceStatement: json['RuleGroupReferenceStatement'] != null
        ? RuleGroupReferenceStatement.fromJson(
            json['RuleGroupReferenceStatement'] as Map<String, dynamic>)
        : null,
    sizeConstraintStatement: json['SizeConstraintStatement'] != null
        ? SizeConstraintStatement.fromJson(
            json['SizeConstraintStatement'] as Map<String, dynamic>)
        : null,
    sqliMatchStatement: json['SqliMatchStatement'] != null
        ? SqliMatchStatement.fromJson(
            json['SqliMatchStatement'] as Map<String, dynamic>)
        : null,
    xssMatchStatement: json['XssMatchStatement'] != null
        ? XssMatchStatement.fromJson(
            json['XssMatchStatement'] as Map<String, dynamic>)
        : null,
  );
}