code: @Deprecated
    public Map<String, String> toDataMap() {
      Map<String, String> map = Maps.newHashMap();
      map.put(PLATFORM_KEY, platform);
      map.put(NAME_KEY, getName());
      map.putAll(metadata);
      return map;
    }
docs: Serialize to a string map
  
  @deprecated use {@link Descriptor#serialize(Descriptor)}