@Nullable
  public FlipperObject toFlipperObject(@Nullable ResizeOptions resizeOptions) {
    if (resizeOptions == null) {
      return null;
    }
    FlipperObject.Builder optionsJson = new FlipperObject.Builder();
    optionsJson.put("width", resizeOptions.width);
    optionsJson.put("height", resizeOptions.height);
    optionsJson.put("maxBitmapSize", resizeOptions.maxBitmapDimension);
    optionsJson.put("roundUpFraction", resizeOptions.roundUpFraction);
    return optionsJson.build();
  }
Serialization helper to create {@link FlipperObject}s.
tools/flipper-fresco-plugin/src/main/java/com/facebook/flipper/plugins/fresco/objecthelper/FlipperObjectHelper.java