IndexInfo.fromMap constructor

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

Creates an IndexInfo from a map representation.

Implementation

factory IndexInfo.fromMap(Map<String, dynamic> map) {
  return IndexInfo(
    name: map['name'] as String,
    tableName: map['tableName'] as String,
    columns: List<String>.from(map['columns'] as List<dynamic>),
    isUnique: map['isUnique'] as bool? ?? false,
    where: map['where'] as String?,
  );
}