code: @Override
      public void encodeTo(FLEncoder encoder) {
          final Object info = encoder.getExtraInfo();
          if (info != null) {
              installInDatabase(((MutableDocument) info).getDatabase());
          }
  
          final Map<String, Object> dict = jsonRepresentation();
          encoder.beginDict(dict.size());
          for (Map.Entry<String, Object> entry : dict.entrySet()) {
              encoder.writeKey(entry.getKey());
              encoder.writeValue(entry.getValue());
          }
          encoder.endDict();
      }
docs: FLEncodable