CreateIndex.fromMap constructor

CreateIndex.fromMap(
  1. Map<String, dynamic> map
)

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