toMap method
Converts this operation to a map representation for serialization.
Implementation
@override
Map<String, dynamic> toMap() {
return {
'type': 'createIndex',
'index': index.toMap(),
if (ifNotExists) 'ifNotExists': true,
};
}