addGeotagWithExpectedLocationDeprecated method Null safety

Future<Result<LocationWithDeviation, LocationError>> addGeotagWithExpectedLocationDeprecated(
  1. JSONObject data,
  2. Location expectedLocation
)

Deprecated. Use addGeotagWithExpectedLocation with orderHandle and orderStatus instead.

Implementation

static Future<Result<LocationWithDeviation, LocationError>>
    addGeotagWithExpectedLocationDeprecated(
        JSONObject data, Location expectedLocation) {
  return _invokeSdkMethod<Map<Object?, Object?>>(SdkMethod.addGeotag,
          serializeGeotagData(null, null, data, expectedLocation))
      .then((value) {
    return deserializeLocationWithDeviationResult(value);
  });
}