addGeotag static method Null safety

Future<Result<Location, LocationError>> addGeotag(
  1. JSONObject data
)

Adds a new geotag. Accepts data - Geotag data JSON. Returns current location if success or LocationError if failure.

Implementation

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