riskReference method

Future<ReferenceOut?> riskReference(
  1. String set_, {
  2. String? after,
  3. int? limit,
})

Reference describes one set and lists your org's overrides in it.

Reference describes one set and lists your org's overrides in it. The set half is public data about a published list — its version, its publishers, their licences and how current each one is. The overrides half is yours alone: it is read from your organisation's own store, and no other organisation's entries can appear in it.

Parameters:

  • String set_ (required):

  • String after: After pages the override listing: the last key of the previous page.

  • int limit: Limit caps the override listing: default 200, maximum 1000.

Implementation

Future<ReferenceOut?> riskReference(String set_, { String? after, int? limit, }) async {
  final response = await riskReferenceWithHttpInfo(set_,  after: after, limit: limit, );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
  // 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), 'ReferenceOut',) as ReferenceOut;

  }
  return null;
}