fill method

Model<OrmMigrationRecord> fill(
  1. Object attributes, {
  2. bool strict = false,
  3. ValueCodecRegistry? registry,
})
inherited

Mass assigns attributes, honoring fillable/guarded metadata.

Supports maps, tracked models, DTOs, and partial entities.

Implementation

Model<TModel> fill(
  Object attributes, {
  bool strict = false,
  ValueCodecRegistry? registry,
}) {
  final codecs = _effectiveCodecRegistry(registry);
  final normalized = _normalizeFillAttributes(attributes, codecs);
  _asAttributes.fillAttributes(
    normalized,
    strict: strict,
    registry: codecs,
  );
  return _self();
}