# ContentValidator.fromJson constructor

ContentValidator.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory ContentValidator.fromJson(Map<String, dynamic> json) {
      String _type = json["_type"];
      switch (_type) {
        case "DefaultContentValidator":
          return DefaultContentValidator.fromJson(json);
        case "PatternContentValidator":
          return PatternContentValidator.fromJson(json);
        default:
          throw ArgumentError("Invalid polymorphic type: $_type");
      }
    }