# PatternContentValidator.fromJson constructor

PatternContentValidator.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory PatternContentValidator.fromJson(Map<String, dynamic> json) =>
        PatternContentValidator(
          allowedCharacters: json.containsKey("allowedCharacters")
              ? json["allowedCharacters"] as String
              : "",
          pattern: json["pattern"] as String,
          matchSubstring: json.containsKey("matchSubstring")
              ? (json["matchSubstring"] as bool)
              : false,
          patternGrammar: json.containsKey("patternGrammar")
              ? PatternGrammar.values.byName(json["patternGrammar"] as String)
              : PatternGrammar.WILDCARD,
        );