profileGetWithHttpInfo method
Get authenticated user's profile
Note: This method returns the HTTP Response.
Implementation
Future<Response> profileGetWithHttpInfo() async {
final path = r'/profile/';
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
final contentTypes = <String>[];
final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
final authNames = <String>['Bearer'];
if (nullableContentType != null &&
nullableContentType.toLowerCase().startsWith('multipart/form-data')) {
bool hasFields = false;
final mp = MultipartRequest("", Uri());
if (hasFields) {
postBody = mp;
}
} else {}
return await apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
nullableContentType,
authNames,
);
}