toMap method

  1. @override
Map<String, Object> toMap ()
override

model -> map

Implementation

@override
Map<String, Object> toMap() {
  return {
    'startCoord': this.startCoord?.toMap(),
    'startName': this.startName,
    'endCoord': this.endCoord?.toMap(),
    'endName': this.endName,
    'routeType': this.routeType.index,
    'transitPolicy': this.transitPolicy.index + 3, // native 初始值为3
    'appScheme': this.appScheme,
    'isSupportWeb': this.isSupportWeb
  };
}