toMap method

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

model -> map

Implementation

@override
Map<String, Object> toMap() {
  return {
    'locationViewOffsetX': this.locationViewOffsetX,
    'locationViewOffsetY': this.locationViewOffsetY,
    'userTrackingMode': this.userTrackingMode.index,
    'enableDirection': this.enableDirection,
    'isAccuracyCircleShow': this.isAccuracyCircleShow,
    'accuracyCircleFillColor':
        this.accuracyCircleFillColor?.value?.toRadixString(16),
    'accuracyCircleStrokeColor':
        this.accuracyCircleStrokeColor?.value?.toRadixString(16),
    'isRotateAngleValid': this.isRotateAngleValid,
    'locationViewImage': this.locationViewImage,
    'canShowCallOut': this.canShowCallOut,
    'locationViewHierarchy': this.locationViewHierarchy.index
  };
}