createBackendConfig method
Creates a config object for a backend.
May throw BadRequestException.
May throw GatewayTimeoutException.
May throw NotFoundException.
May throw TooManyRequestsException.
Parameter appId :
The app ID.
Parameter backendManagerAppId :
The app ID for the backend manager.
Implementation
Future<CreateBackendConfigResponse> createBackendConfig({
required String appId,
String? backendManagerAppId,
}) async {
final $payload = <String, dynamic>{
if (backendManagerAppId != null)
'backendManagerAppId': backendManagerAppId,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/backend/${Uri.encodeComponent(appId)}/config',
exceptionFnMap: _exceptionFns,
);
return CreateBackendConfigResponse.fromJson(response);
}