ModelProperty.fromMap constructor

ModelProperty.fromMap(
  1. Map<String, dynamic> data,
  2. ModelEntity? entity
)

Implementation

ModelProperty.fromMap(Map<String, dynamic> data, ModelEntity? entity)
    : this.create(IdUid.fromString(data['id'] as String?),
          data['name'] as String?, data['type'] as int?,
          flags: data['flags'] as int? ?? 0,
          indexId: data['indexId'] as String?,
          entity: entity,
          dartFieldType: data['dartFieldType'] as String?,
          relationTarget: data['relationTarget'] as String?);