UploadRequest<T> constructor

const UploadRequest<T>({
  1. required String endpoint,
  2. T fromJson(
    1. dynamic json
    )?,
  3. required List<UploadFile> files,
  4. String version = '',
  5. Object? query,
  6. ApiUploadRequestOptions? options,
  7. Map<String, String>? fields,
  8. UploadMethod method = UploadMethod.post,
})

Implementation

const UploadRequest({
  required super.endpoint,
  super.fromJson,
  required this.files,
  super.version,
  super.query,
  ApiUploadRequestOptions? options,
  this.fields,
  this.method = UploadMethod.post,
})  : uploadOptions = options,
      super(options: options);