@Nullable
  public FlipperObject toFlipperObject(@Nullable Map<String, String> stringMap) {
    if (stringMap == null) {
      return null;
    }
    FlipperObject.Builder optionsJson = new FlipperObject.Builder();
    for (Map.Entry<String, String> entry : stringMap.entrySet()) {
      optionsJson.put(entry.getKey(), entry.getValue());
    }
    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