addGeotagWithExpectedLocation static method Null safety

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

Implementation

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