createApp method

Future<CreateAppResponse> createApp({
  1. required CreateApplicationRequest createApplicationRequest,
})

Creates an application.

May throw BadRequestException. May throw InternalServerErrorException. May throw PayloadTooLargeException. May throw ForbiddenException. May throw NotFoundException. May throw MethodNotAllowedException. May throw TooManyRequestsException.

Implementation

Future<CreateAppResponse> createApp({
  required CreateApplicationRequest createApplicationRequest,
}) async {
  ArgumentError.checkNotNull(
      createApplicationRequest, 'createApplicationRequest');
  final response = await _protocol.sendRaw(
    payload: createApplicationRequest,
    method: 'POST',
    requestUri: '/v1/apps',
    exceptionFnMap: _exceptionFns,
  );
  final $json = await _s.jsonFromResponse(response);
  return CreateAppResponse(
    applicationResponse: ApplicationResponse.fromJson($json),
  );
}