Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 2x 2x 2x 2x 2x 2x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import { NeighborhoodInterface } from '../interfaces/neightborhood.interface';
export class NeighborhoodClass {
description: string;
imageUrl: string;
name: string;
position: number;
tags: string[];
constructor(data: NeighborhoodInterface) {
this.description = data.description;
this.imageUrl = data['image-url'];
this.name = data.name;
this.position = data.position;
this.tags = data.tags;
}
fromJson(json: NeighborhoodInterface): void {
this.description = json.description;
this.imageUrl = json['image-url'];
this.name = json.name;
this.position = json.position;
this.tags = json.tags;
}
}
|