sync = $attributes['sync'] ?? true; $this->update_record = $attributes['update_record'] ?? true; $this->direction = isset($attributes['direction']) ? SyncDirection::from($attributes['direction']) : SyncDirection::BIDIRECTIONAL; } }