ObjectStoreIndex.fromJson constructor

ObjectStoreIndex.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ObjectStoreIndex.fromJson(Map<String, dynamic> json) {
  return ObjectStoreIndex(
    name: json['name'] as String,
    keyPath: KeyPath.fromJson(json['keyPath'] as Map<String, dynamic>),
    unique: json['unique'] as bool? ?? false,
    multiEntry: json['multiEntry'] as bool? ?? false,
  );
}