APIRequest.post constructor
APIRequest.post(})
Creates a request of POST method.
Implementation
factory APIRequest.post(
String path, {
Map<String, dynamic>? parameters,
Map<String, dynamic>? headers,
dynamic payload,
Object? payloadMimeType,
APICredential? credential,
}) {
return APIRequest(
APIRequestMethod.POST,
path,
parameters: parameters ?? <String, dynamic>{},
headers: headers ?? <String, dynamic>{},
payload: payload,
payloadMimeType: payloadMimeType,
credential: credential,
);
}