static asMap(object) {
    const map = new Map();
    for (const key of Object.keys(object)) {
      map.set(key, object[key]);
    }

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