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

Class FilmModelExtendToJson

test/types/model.ts:312–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310const film = FilmModelToJson.build();
311
312class FilmModelExtendToJson extends Model<FilmToJson> implements FilmToJson {
313 id!: number;
314 name?: string;
315
316 public toJSON() {
317 return { id: this.id }
318 }
319}
320const filmOverrideToJson = FilmModelExtendToJson.build();
321
322const result = film.toJSON();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected