toMap method

  1. @override
Map<String, dynamic> toMap()
override

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,
  };
}