CreateIndex.fromMap constructor
Creates a CreateIndex from a map representation.
Implementation
factory CreateIndex.fromMap(Map<String, dynamic> map) {
return CreateIndex(
index: IndexInfo.fromMap(map['index'] as Map<String, dynamic>),
ifNotExists: map['ifNotExists'] as bool? ?? false,
);
}