strval($content)]); } /** * @param array $appends * @param bool $withType * * @return array */ public function transformForJsonRequest(array $appends = [], bool $withType = true): array { return json_decode($this->content, true) ?? []; } public function __toString() { return $this->get('content') ?? ''; } }