import { AirportDto } from './../gql/dto/' ; import { Airport } from './../../../shared/model/' ; /**
 * Details of a AirportMapper
 */ export class AirportMapper { param airportsDtoList public static toAirports ( airportsDtoList ) { let airports ; if ( airportsDtoList ) { airports = new Array < Airport > ( ) ; airportsDtoList . forEach ( airportDtoList => { airports . push ( this . toAirport ( airportDtoList ) ) ; } ) ; } return airports ; } param airportDtoList public static toAirport ( airportDtoList ) { let airport ; if ( airportDtoList ) { airport = new Airport ( ) ; airport . AirportID = airportDtoList . AirportID ; airport . City = airportDtoList . City ; airport . Country = airportDtoList . Country ; airport . Name = airportDtoList . Name ; airport . destinations = airportDtoList . destinations ; } return airport ; } }