TypeScript model class for the entity

Let's look at the TypeScript model generated in product.model.ts. This maps directly to the domain object:

export class Product implements IProduct {
constructor(
public id?: number,
public name?: string,
public description?: string,
public imageContentType?: string,
public image?: any,
public price?: number,
public size?: Size,
public productCategory?: IProductCategory
) {
}
}

The fields are all optional making it possible to create an object instance without any values. You will also see that the enums are also generated alongside the model in the file.