}}> */ final class ThreadMessageResponseContentTextObject implements ResponseContract { /** * @use ArrayAccessible}}> */ use ArrayAccessible; use Fakeable; private function __construct( public string $type, public ThreadMessageResponseContentText $text, ) { } /** * Acts as static factory, and returns a new Response instance. * * @param array{type: string, text: array{value: string, annotations: array}} $attributes */ public static function from(array $attributes): self { return new self( $attributes['type'], ThreadMessageResponseContentText::from($attributes['text']), ); } /** * {@inheritDoc} */ public function toArray(): array { return [ 'type' => $this->type, 'text' => $this->text->toArray(), ]; } }