assignLicense method

Future<void> assignLicense(
  1. String id,
  2. GatewayAssignLicenseRequestBody gatewayAssignLicenseRequestBody
)

Assign a license to a gateway

Parameters:

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