createProfile method
Creates a new profile.
Implementation
Future<KuzzleProfile> createProfile(
String id, List<Map<String, dynamic>> policies,
{bool? waitForRefresh}) async {
final response = await kuzzle.query(KuzzleRequest(
controller: name,
action: 'createProfile',
uid: id,
waitForRefresh: waitForRefresh,
body: <String, dynamic>{
'policies': policies,
},
));
return KuzzleProfile.fromKuzzleResponse(kuzzle, response);
}