class FeatureSupport {

  public static Feature toFeature(String json) {

    try {
      Feature.Builder builder = Feature.newBuilder();
      JsonFormat.parser().ignoringUnknownFields().merge(json, builder);
      return builder.build();
    } catch (InvalidProtocolBufferException e) {
      throw new RuntimeException(e);
    }
  }

}