getBase method

Fetch base image. For most images this will be the originally uploaded file. For larger images it can be a near-lossless version of the original. Note: the response is

Documentation: https://api.cloudflare.com/#cloudflare-images-base-image

Implementation

Future<CloudflareHTTPResponse<Uint8List?>> getBase({
  /// Image identifier
  String? id,

  /// Image with the required identifier
  CloudflareImage? image,
}) async {
  assert(!isBasic, RestAPIService.authorizedRequestAssertMessage);
  assert(
      id != null || image != null, 'One of id or image must not be empty.');
  id ??= image?.id;
  final response = await genericParseResponse<Uint8List>(
      service.getBase(
        id: id!,
      ),
      parseCloudflareResponse: false);

  return response;
}