SecurityPolicyRuleMatcher.fromJson constructor
SecurityPolicyRuleMatcher.fromJson(
- Object? j
Implementation
factory SecurityPolicyRuleMatcher.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return SecurityPolicyRuleMatcher(
config: switch (json['config']) {
null => null,
Object $1 => SecurityPolicyRuleMatcherConfig.fromJson($1),
},
expr: switch (json['expr']) {
null => null,
Object $1 => Expr.fromJson($1),
},
exprOptions: switch (json['exprOptions']) {
null => null,
Object $1 => SecurityPolicyRuleMatcherExprOptions.fromJson($1),
},
versionedExpr: switch (json['versionedExpr']) {
null => null,
Object $1 => decodeString($1),
},
);
}