import { U as User } from './User-e14f1ece.js';

class BaseModel {
}

class Workspace extends BaseModel {
  static decode(json) {
    return Object.assign(Object.create(Workspace.prototype), json);
  }
}

class Product extends BaseModel {
  static decode(json) {
    const item = Object.assign(Object.create(Product.prototype), json);
    if (item.user)
      item.user = User.decode(item.user);
    if (item.workspace)
      item.workspace = Workspace.decode(item.workspace);
    return item;
  }
}

export { BaseModel as B, Product as P, Workspace as W };
