ModelProperty.fromMap constructor
ModelProperty.fromMap(
- Map<
String, dynamic> data, - ModelEntity? entity
Implementation
ModelProperty.fromMap(Map<String, dynamic> data, this.entity)
: id = IdUid.fromString(data['id'] as String?),
relationTarget = data['relationTarget'] as String?,
_dartFieldType = data['dartFieldType'] as String?,
uidRequest = data['uidRequest'] as bool? ?? false,
hnswParams = ModelHnswParams.fromMap(
data['hnswParams'] as Map<String, dynamic>?) {
name = data['name'] as String?;
type = data['type'] as int?;
flags = data['flags'] as int? ?? 0;
final indexId = data['indexId'] as String?;
this.indexId = indexId == null ? null : IdUid.fromString(indexId);
}