MCPcopy
hub / github.com/sequelize/sequelize / FilmModelExtendToJson

Class FilmModelExtendToJson

types/test/model.ts:220–227  ·  types/test/model.ts::FilmModelExtendToJson

Source from the content-addressed store, hash-verified

218const film = FilmModelToJson.build();
219
220class FilmModelExtendToJson extends Model<FilmToJson> implements FilmToJson {
221 id!: number;
222 name?: string;
223
224 public toJSON() {
225 return { id: this.id }
226 }
227}
228const filmOverrideToJson = FilmModelExtendToJson.build();
229
230const result = film.toJSON();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected