toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts the MPRouteCoordinate to a JSON representation that can be parsed by the MapsIndoors Platform SDK

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "lat": latitude,
    "lng": longitude,
    "zLevel": floorIndex,
    "floor_name": floorname
  };
}