@Nullable
  public FlipperObject toFlipperObject(@Nullable QualityInfo qualityInfo) {
    if (qualityInfo == null) {
      return null;
    }
    FlipperObject.Builder objectJson = new FlipperObject.Builder();
    objectJson.put("quality", qualityInfo.getQuality());
    objectJson.put("isGoodEnoughQuality", qualityInfo.isOfGoodEnoughQuality());
    objectJson.put("isFullQuality", qualityInfo.isOfFullQuality());
    return objectJson.build();
  }
Serialization helper to create {@link FlipperObject}s.
tools/flipper-fresco-plugin/src/main/java/com/facebook/flipper/plugins/fresco/objecthelper/FlipperObjectHelper.java