fill method

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

Mass assigns attributes, honoring fillable/guarded metadata.

Implementation

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