WafExpressionSetExpression.fromJson constructor

WafExpressionSetExpression.fromJson(
  1. Object? j
)

Implementation

factory WafExpressionSetExpression.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return WafExpressionSetExpression(
    id: switch (json['id']) {
      null => null,
      Object $1 => decodeString($1),
    },
    sensitivity: switch (json['sensitivity']) {
      null => null,
      Object $1 => decodeInt($1),
    },
  );
}