toMap method
Implementation
Map<String, dynamic> toMap() {
return {
if (index != null) '_index': index,
if (type != null) '_type': type,
'_id': id,
if (score != null) '_score': score,
'doc': doc,
if (sort != null) 'sort': sort,
};
}