toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  return {
    'isMockEnable': isMockEnable,
    'interval': interval,
    'isOnceLocation': isOnceLocation,
    'isNeedAddress': isNeedAddress,
    'isWifiScan': isWifiScan,
    'locationMode': locationMode.index,
    'locationProtocol': locationProtocol.index,
    'isKillProcess': isKillProcess,
    'isGpsFirst': isGpsFirst,
    'httpTimeOut': httpTimeOut,
    'isOffset': isOffset,
    'isLocationCacheEnable': isLocationCacheEnable,
    'isOnceLocationLatest': isOnceLocationLatest,
    'isSensorEnable': isSensorEnable,
    'lastLocationLifeCycle': lastLocationLifeCycle,
    'geoLanguage': geoLanguage.index,
    'isDownloadCoordinateConvertLibrary': isDownloadCoordinateConvertLibrary,
    'deviceModeDistanceFilter': deviceModeDistanceFilter,
    'locationPurpose': locationPurpose?.index,
    'isOpenAlwaysScanWifi': isOpenAlwaysScanWifi,
    'scanWifiInterval': scanWifiInterval,
    'distanceFilter': distanceFilter,
    'pausesLocationUpdatesAutomatically': pausesLocationUpdatesAutomatically,
    'allowsBackgroundLocationUpdates': allowsBackgroundLocationUpdates,
    'locationTimeout': locationTimeout,
    'reGeocodeTimeout': reGeocodeTimeout,
    'locatingWithReGeocode': locatingWithReGeocode,
    'monitoredRegions': monitoredRegions,
    'detectRiskOfFakeLocation': detectRiskOfFakeLocation
  };
}