buySpawnEventGemsShopSpawnEventPostWithHttpInfo method

Future<Response> buySpawnEventGemsShopSpawnEventPostWithHttpInfo(
  1. SpawnEventRequestSchema spawnEventRequestSchema, {
  2. Future<void>? abortTrigger,
})

Buy Spawn Event

Spawn an event from the gems shop using gems.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> buySpawnEventGemsShopSpawnEventPostWithHttpInfo(
  SpawnEventRequestSchema spawnEventRequestSchema, {
  Future<void>? abortTrigger,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/gems_shop/spawn_event';

  // ignore: prefer_final_locals
  Object? postBody = spawnEventRequestSchema;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];

  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
    abortTrigger: abortTrigger,
  );
}