put<T> method
Sends a PUT request to endpoint. Same auto raw/multipart
detection as post applies to body and files, including
forceRaw.
Implementation
Future<SmartApiResponse<T>> put<T>(String endpoint,
{dynamic body,
List<SmartApiFile>? files,
Map<String, dynamic>? queryParams,
bool? autoDetectFiles,
bool forceRaw = false,
T Function(dynamic)? fromJson,
bool showLoader = true}) =>
call<T>(
SmartApiRequest(
endpoint: endpoint,
method: ApiMethod.put,
body: body,
files: files,
queryParams: queryParams,
autoDetectFiles: autoDetectFiles,
forceRaw: forceRaw,
showLoader: showLoader,
),
fromJson: fromJson);