code: static Struct newStruct(Map<String, ?> map) {
      Map<String, Value> valueMap = Maps.transformValues(checkNotNull(map), OBJECT_TO_VALUE);
      return Struct.newBuilder().putAllFields(valueMap).build();
    }
docs: Creates a new {@link Struct} object given the content of the provided {@code map} parameter.
  
  <p>Notice that all numbers (int, long, float and double) are serialized as double values. Enums
  are serialized as strings.