createIndex method
CreateIndex creates a new index.
Implementation
Future<CreateIndexResponse> createIndex(
CreateIndexRequest createIndexRequest) async {
var response = await client.httpClient.post('/api/IndexService.CreateIndex',
headers: _headers(), body: jsonEncode(createIndexRequest));
if (response.statusCode != 200) {
throw Exception(
'firesearch: IndexService.CreateIndex: ${response.statusCode} ${response.body}');
}
return CreateIndexResponse.fromJson(jsonDecode(response.body));
}