$this->otp_type, 'account' => $this->account, 'service' => $this->service, 'icon' => $this->icon, 'icon_mime' => $this->icon ? Storage::disk('icons')->mimeType((string) $this->icon) : null, 'icon_file' => $this->icon ? base64_encode(Storage::disk('icons')->get((string) $this->icon)) : null, 'secret' => $this->secret, 'digits' => (int) $this->digits, 'algorithm' => $this->algorithm, 'period' => is_null($this->period) ? null : (int) $this->period, 'counter' => is_null($this->counter) ? null : (int) $this->counter, 'legacy_uri' => $this->legacy_uri, ]; } }