1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 1x 1x 1x 1x | 'use es6'; import {Map, Record} from 'immutable'; import Coordinate from '../data/Coordinate'; let defaults = { startCoordinate: new Coordinate(), rideType: undefined, }; export default class NearbyDriversSearch extends Record(defaults) { toParameters(search) { return Map({ lat: this.startCoordinate.lat, lng: this.startCoordinate.lng, ride_type: this.rideType, }); } } |