XssMatchStatement.fromJson constructor

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

Implementation

factory XssMatchStatement.fromJson(Map<String, dynamic> json) {
  return XssMatchStatement(
    fieldToMatch:
        FieldToMatch.fromJson(json['FieldToMatch'] as Map<String, dynamic>),
    textTransformations: (json['TextTransformations'] as List)
        .whereNotNull()
        .map((e) => TextTransformation.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}