|
@@ -1,21 +1,13 @@
|
|
export class QuienesSomos {
|
|
export class QuienesSomos {
|
|
- id: string;
|
|
|
|
- foto?: string;
|
|
|
|
- nombre: string;
|
|
|
|
- descripcion?: string;
|
|
|
|
- imagen?: string;
|
|
|
|
- fecha?: string;
|
|
|
|
|
|
+ id: string | undefined;
|
|
|
|
+ foto?: string | undefined;
|
|
|
|
+ nombre: string | undefined;
|
|
|
|
+ descripcion?: string | undefined;
|
|
|
|
+ imagen?: string | undefined;
|
|
|
|
+ fecha?: string | undefined;
|
|
|
|
|
|
constructor(json?: Partial<QuienesSomos>) {
|
|
constructor(json?: Partial<QuienesSomos>) {
|
|
- this.id = "";
|
|
|
|
- this.foto = "";
|
|
|
|
- this.nombre = "";
|
|
|
|
- this.descripcion = "";
|
|
|
|
- this.imagen = "";
|
|
|
|
- this.fecha = "";
|
|
|
|
- if (json !== null) {
|
|
|
|
Object.assign(this, json);
|
|
Object.assign(this, json);
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
static fromJson(json: Partial<QuienesSomos>) {
|
|
static fromJson(json: Partial<QuienesSomos>) {
|