protected function isJsonCastable($key) { return $this->hasCast($key, ['array', 'json', 'object', 'collection']); }