$this->encodePrimaryKey($group_setting->id), 'name' => (string)$group_setting->name ?: '', 'settings' => $group_setting->settings ?: new \stdClass, ]; } }