class FactConverter {

    Fact convert(com.sabre.oss.yare.serializer.json.model.Fact fact) {
        if (fact == null) {
            return null;
        }
        return new Fact(
                fact.getName(),
                typeConverter.fromString(Type.class, fact.getType()));
    }

      FactConverter(TypeConverter typeConverter);

}