2023-02-22 12:12:38 +01:00
|
|
|
import { Base } from './base.model';
|
|
|
|
|
|
|
|
|
|
export class Record extends Base {
|
|
|
|
|
code?: string;
|
|
|
|
|
value?: number;
|
|
|
|
|
desc1?: string;
|
|
|
|
|
desc2?: string;
|
|
|
|
|
desc3?: string;
|
|
|
|
|
desc4?: string;
|
|
|
|
|
desc5?: string;
|
|
|
|
|
|
|
|
|
|
constructor(data: Partial<Record> = {}) {
|
|
|
|
|
super();
|
|
|
|
|
Object.assign(this, data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
|
|
|
override deserialize(input: any): this {
|
|
|
|
|
Object.assign(this, Object.assign(this, super.deserialize(input)));
|
|
|
|
|
return this;
|
|
|
|
|
}
|
2022-12-11 23:40:16 +01:00
|
|
|
}
|