getMapping method
Get the index mapping.
WARNING: this is not a finalized API, may change in the future.
Implementation
Future<Map<String, dynamic>> getMapping() async {
final rs =
await _client._transport.send(Request('GET', [name, '_mapping']));
rs.throwIfStatusNotOK(message: 'Failed to get mapping for $name.');
return rs.bodyAsMap;
}