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