Files
gelegeapp-ionic/src/models/Area.ts
T
Torben Indorf 6fe11728eb load icons, nests and states
show the first nest on the map <3 <3 <3
2020-02-11 21:55:54 +01:00

18 lines
333 B
TypeScript

import User from '@/models/User';
export class Area {
public id?: string;
public name?: string;
public active: boolean = false;
public users: User[] = [];
constructor(data: any) {
Object.assign(this, data);
if (data.users) {
this.users = data.users.map((userData: any) => new User(userData));
}
}
}