registerNewGroupAdministrator method

Future<RegistrationSuccessDto?> registerNewGroupAdministrator(
  1. RegistrationInformationDto registrationInformationDto
)

Create a group

Create a new group and associated dbs. The created group will be manageable by the users that belong to the same group as the one that called createGroup. Several tasks can be executed during the group creation like DB replications towards the created DBs, users creation and healthcare parties creation

Parameters:

Implementation

Future<RegistrationSuccessDto?> registerNewGroupAdministrator(RegistrationInformationDto registrationInformationDto,) async {
  final response = await registerNewGroupAdministratorWithHttpInfo(registrationInformationDto,);
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException.withRequestId(response.statusCode, await _decodeBodyBytes(response), response.headers["x-request-id"], response.request?.url.toString());
  }
  // When a remote server returns no body with a status of 204, we shall not decode it.
  // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  // FormatException when trying to decode an empty string.
  if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
    return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'RegistrationSuccessDto',) as RegistrationSuccessDto;

  }
  return null;
}