code: public static Collection<Attribute> fromMap(Map<String,Object> map) {
          requireNonNull(map);
          Collection<Attribute> attributes = new HashSet<>();
          convertObject(attributes, map, "", 0, new HashMap<>());
          return attributes;
      }
docs: Flattens a Map<String,Object> into a collection of attributes. This allows objects which have
  already been parsed from json strings and processed to be turned into attribute stores as well.