SyncBodyBuilder typedef

SyncBodyBuilder = Future<JsonMap> Function(List<Location> locations, JsonMap extras)

Callback type for building custom HTTP sync body.

Called before each sync request to construct the HTTP body. locations contains the pending locations to sync. extras contains the extras from Config.

Must return a JSON-serializable Map that will be sent as the request body.

Implementation

typedef SyncBodyBuilder = Future<JsonMap> Function(
  List<Location> locations,
  JsonMap extras,
);