code: protected function fillAttributes($record, Collection $attributes)
      {
          $record->fill(
              $this->deserializeAttributes($attributes, $record)
          );
      }
docs: Fill JSON API attributes into a model.
  
  @param Model $record
  @param $attributes