static asObject(map) {
    const obj = {};
    map.forEach((value, key) => {
      obj[key] = value;
    });

    return obj;
  }
@param {!Map<KEY, VALUE>} map
@return {!Object<KEY, VALUE>}
@template KEY,VALUE