constructor ({ name, endpoints, onDelete, onUpdate }) {
    /** @type {string} */
    this.name = name;

    /** @type {Endpoint[]} */
    this.endpoints = endpoints || [];

    /** @type {string} */
    this.onDelete = onDelete;

    /** @type {string} */
    this.onUpdate = onUpdate;
  }
@param {{
 name: string,
 endpoints: Endpoint[],
 onDelete: string,
 onUpdate: string
}} param0