factory Validator.fromJson(Map<String, dynamic> json) { return Validator( content: json['Content'] as String, type: (json['Type'] as String).toValidatorType(), ); }