toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
  'startLatitude' : startLatitude,
  'startLongitude' : startLongitude,
  'endLatitude': endLatitude,
  'endLongitude': endLongitude,
  'bearing': bearing,
  'distance': distance,
  'time': time,
  'routeBounds': routeBounds != null ? routeBounds!.toMap() : null,
  'encodedPoints': encodedPoints
};