assignLicense method
Future<void>
assignLicense(
- String id,
- GatewayAssignLicenseRequestBody gatewayAssignLicenseRequestBody
Assign a license to a gateway
Parameters:
-
String id (required): Path param: id
-
GatewayAssignLicenseRequestBody GatewayAssignLicenseRequestBody (required):
Implementation
Future<void> assignLicense(
String id,
GatewayAssignLicenseRequestBody gatewayAssignLicenseRequestBody,
) async {
final response = await assignLicenseHttpInfo(
id,
gatewayAssignLicenseRequestBody,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
}