IndexDefinition.fromJson constructor

IndexDefinition.fromJson(
  1. Map<String, dynamic> jsonSerialization
)

Implementation

factory IndexDefinition.fromJson(Map<String, dynamic> jsonSerialization) {
  return IndexDefinition(
    indexName: jsonSerialization['indexName'] as String,
    tableSpace: jsonSerialization['tableSpace'] as String?,
    elements: (jsonSerialization['elements'] as List)
        .map((e) =>
            _i2.IndexElementDefinition.fromJson((e as Map<String, dynamic>)))
        .toList(),
    type: jsonSerialization['type'] as String,
    isUnique: jsonSerialization['isUnique'] as bool,
    isPrimary: jsonSerialization['isPrimary'] as bool,
    predicate: jsonSerialization['predicate'] as String?,
  );
}