accessTokenKey = $attributes['accessTokenKey'] ?? ''; $this->refresh_token = $attributes['refresh_token'] ?? ''; $this->realmID = $attributes['realmID'] ?? ''; $this->accessTokenExpiresAt = $attributes['accessTokenExpiresAt'] ?? 0; $this->refreshTokenExpiresAt = $attributes['refreshTokenExpiresAt'] ?? 0; $this->baseURL = $attributes['baseURL'] ?? ''; $this->settings = new QuickbooksSync($attributes['settings'] ?? []); } public static function castUsing(array $arguments): string { return QuickbooksSettingsCast::class; } public static function fromArray(array $data): self { return new self($data); } }