import { BusStop } from '../models/bus-stop'; import { Injectable } from '@angular/core'; import { StatementBaseService } from '../services/statement.base.service'; import { Http } from '@angular/http'; @Injectable() export class BusStopService extends StatementBaseService { protected url: string = 'http://localhost:5000/busstop'; constructor(protected http: Http) { super(http); } protected parseModels(json: any): any[] { return json.busStopEditDsM as BusStop[]; }; protected parseModel(json: any): any { return json as BusStop; }; }