createCharacterCharactersCreatePostWithHttpInfo method

Future<Response> createCharacterCharactersCreatePostWithHttpInfo(
  1. AddCharacterSchema addCharacterSchema
)

Create Character

Create new character on your account. You can create up to 5 characters.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> createCharacterCharactersCreatePostWithHttpInfo(
  AddCharacterSchema addCharacterSchema,
) async {
  // ignore: prefer_const_declarations
  final path = r'/characters/create';

  // ignore: prefer_final_locals
  Object? postBody = addCharacterSchema;

  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,
  );
}