$this->id, 'user_id' => $this->user_id, 'domain' => $this->domain, 'description' => $this->description, 'aliases' => AliasResource::collection($this->whenLoaded('aliases')), 'default_recipient' => new RecipientResource($this->whenLoaded('defaultRecipient')), 'active' => $this->active, 'catch_all' => $this->catch_all, 'domain_verified_at' => $this->domain_verified_at ? $this->domain_verified_at->toDateTimeString() : null, 'domain_sending_verified_at' => $this->domain_sending_verified_at ? $this->domain_sending_verified_at->toDateTimeString() : null, 'created_at' => $this->created_at->toDateTimeString(), 'updated_at' => $this->updated_at->toDateTimeString(), ]; } }