PostApiV3StudiosStudioTermsRequest.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838
  1. <?php
  2. /**
  3. * PostApiV3StudiosStudioTermsRequest
  4. *
  5. * PHP version 8.1
  6. *
  7. * @category Class
  8. * @package WikipaliApi
  9. * @author OpenAPI Generator team
  10. * @link https://openapi-generator.tech
  11. */
  12. /**
  13. * MINT API
  14. *
  15. * International Academy Of Pali Tipitaka(国际巴利三藏学院) 由 `php openapi/scripts/generate.php` 依据 api-v13 的路由与控制器源码生成。 响应统一封装为 `{ok, message, data}`;`ok=false` 时 `message` 为错误信息。
  16. *
  17. * The version of the OpenAPI document: 1.0.0
  18. * Generated by: https://openapi-generator.tech
  19. * Generator version: 7.25.0
  20. */
  21. /**
  22. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
  23. * https://openapi-generator.tech
  24. * Do not edit the class manually.
  25. */
  26. namespace WikipaliApi\Model;
  27. use \ArrayAccess;
  28. use \WikipaliApi\ObjectSerializer;
  29. /**
  30. * PostApiV3StudiosStudioTermsRequest Class Doc Comment
  31. *
  32. * @category Class
  33. * @package WikipaliApi
  34. * @author OpenAPI Generator team
  35. * @link https://openapi-generator.tech
  36. * @implements \ArrayAccess<string, mixed>
  37. */
  38. class PostApiV3StudiosStudioTermsRequest implements ModelInterface, ArrayAccess, \JsonSerializable
  39. {
  40. public const DISCRIMINATOR = null;
  41. /**
  42. * The original name of the model.
  43. *
  44. * @var string
  45. */
  46. protected static $openAPIModelName = 'post_api_v3_studios_studio_terms_request';
  47. /**
  48. * Array of property to type mappings. Used for (de)serialization
  49. *
  50. * @var string[]
  51. */
  52. protected static $openAPITypes = [
  53. 'word' => 'string',
  54. 'tag' => 'string',
  55. 'meaning' => 'string',
  56. 'language' => 'string',
  57. 'other_meaning' => 'string',
  58. 'note' => 'string',
  59. 'summary' => 'string',
  60. 'quality' => 'string',
  61. 'content_type' => 'string',
  62. 'redirect' => 'string'
  63. ];
  64. /**
  65. * Array of property to format mappings. Used for (de)serialization
  66. *
  67. * @var string[]
  68. * @phpstan-var array<string, string|null>
  69. * @psalm-var array<string, string|null>
  70. */
  71. protected static $openAPIFormats = [
  72. 'word' => null,
  73. 'tag' => null,
  74. 'meaning' => null,
  75. 'language' => null,
  76. 'other_meaning' => null,
  77. 'note' => null,
  78. 'summary' => null,
  79. 'quality' => null,
  80. 'content_type' => null,
  81. 'redirect' => null
  82. ];
  83. /**
  84. * Array of nullable properties. Used for (de)serialization
  85. *
  86. * @var boolean[]
  87. */
  88. protected static array $openAPINullables = [
  89. 'word' => false,
  90. 'tag' => true,
  91. 'meaning' => false,
  92. 'language' => false,
  93. 'other_meaning' => true,
  94. 'note' => true,
  95. 'summary' => true,
  96. 'quality' => true,
  97. 'content_type' => false,
  98. 'redirect' => true
  99. ];
  100. /**
  101. * If a nullable field gets set to null, insert it here
  102. *
  103. * @var boolean[]
  104. */
  105. protected array $openAPINullablesSetToNull = [];
  106. /**
  107. * Array of property to type mappings. Used for (de)serialization
  108. *
  109. * @return array
  110. */
  111. public static function openAPITypes()
  112. {
  113. return self::$openAPITypes;
  114. }
  115. /**
  116. * Array of property to format mappings. Used for (de)serialization
  117. *
  118. * @return array
  119. */
  120. public static function openAPIFormats()
  121. {
  122. return self::$openAPIFormats;
  123. }
  124. /**
  125. * Array of nullable properties
  126. *
  127. * @return array
  128. */
  129. protected static function openAPINullables(): array
  130. {
  131. return self::$openAPINullables;
  132. }
  133. /**
  134. * Array of nullable field names deliberately set to null
  135. *
  136. * @return boolean[]
  137. */
  138. private function getOpenAPINullablesSetToNull(): array
  139. {
  140. return $this->openAPINullablesSetToNull;
  141. }
  142. /**
  143. * Setter - Array of nullable field names deliberately set to null
  144. *
  145. * @param boolean[] $openAPINullablesSetToNull
  146. */
  147. private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void
  148. {
  149. $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;
  150. }
  151. /**
  152. * Checks if a property is nullable
  153. *
  154. * @param string $property
  155. * @return bool
  156. */
  157. public static function isNullable(string $property): bool
  158. {
  159. return self::openAPINullables()[$property] ?? false;
  160. }
  161. /**
  162. * Checks if a nullable property is set to null.
  163. *
  164. * @param string $property
  165. * @return bool
  166. */
  167. public function isNullableSetToNull(string $property): bool
  168. {
  169. return in_array($property, $this->getOpenAPINullablesSetToNull(), true);
  170. }
  171. /**
  172. * Array of attributes where the key is the local name,
  173. * and the value is the original name
  174. *
  175. * @var string[]
  176. */
  177. protected static $attributeMap = [
  178. 'word' => 'word',
  179. 'tag' => 'tag',
  180. 'meaning' => 'meaning',
  181. 'language' => 'language',
  182. 'other_meaning' => 'other_meaning',
  183. 'note' => 'note',
  184. 'summary' => 'summary',
  185. 'quality' => 'quality',
  186. 'content_type' => 'content_type',
  187. 'redirect' => 'redirect'
  188. ];
  189. /**
  190. * Array of attributes to setter functions (for deserialization of responses)
  191. *
  192. * @var string[]
  193. */
  194. protected static $setters = [
  195. 'word' => 'setWord',
  196. 'tag' => 'setTag',
  197. 'meaning' => 'setMeaning',
  198. 'language' => 'setLanguage',
  199. 'other_meaning' => 'setOtherMeaning',
  200. 'note' => 'setNote',
  201. 'summary' => 'setSummary',
  202. 'quality' => 'setQuality',
  203. 'content_type' => 'setContentType',
  204. 'redirect' => 'setRedirect'
  205. ];
  206. /**
  207. * Array of attributes to getter functions (for serialization of requests)
  208. *
  209. * @var string[]
  210. */
  211. protected static $getters = [
  212. 'word' => 'getWord',
  213. 'tag' => 'getTag',
  214. 'meaning' => 'getMeaning',
  215. 'language' => 'getLanguage',
  216. 'other_meaning' => 'getOtherMeaning',
  217. 'note' => 'getNote',
  218. 'summary' => 'getSummary',
  219. 'quality' => 'getQuality',
  220. 'content_type' => 'getContentType',
  221. 'redirect' => 'getRedirect'
  222. ];
  223. /**
  224. * Array of attributes where the key is the local name,
  225. * and the value is the original name
  226. *
  227. * @return array
  228. */
  229. public static function attributeMap()
  230. {
  231. return self::$attributeMap;
  232. }
  233. /**
  234. * Array of attributes to setter functions (for deserialization of responses)
  235. *
  236. * @return array
  237. */
  238. public static function setters()
  239. {
  240. return self::$setters;
  241. }
  242. /**
  243. * Array of attributes to getter functions (for serialization of requests)
  244. *
  245. * @return array
  246. */
  247. public static function getters()
  248. {
  249. return self::$getters;
  250. }
  251. /**
  252. * The original name of the model.
  253. *
  254. * @return string
  255. */
  256. public function getModelName()
  257. {
  258. return self::$openAPIModelName;
  259. }
  260. public const QUALITY_FEATURED = 'featured';
  261. public const QUALITY_STANDARD = 'standard';
  262. public const QUALITY_DRAFT = 'draft';
  263. public const QUALITY_PENDING = 'pending';
  264. public const CONTENT_TYPE_MARKDOWN = 'markdown';
  265. public const CONTENT_TYPE_MARKDOWN_E2 = 'markdown-e2';
  266. /**
  267. * Gets allowable values of the enum
  268. *
  269. * @return string[]
  270. */
  271. public function getQualityAllowableValues()
  272. {
  273. return [
  274. self::QUALITY_FEATURED,
  275. self::QUALITY_STANDARD,
  276. self::QUALITY_DRAFT,
  277. self::QUALITY_PENDING,
  278. ];
  279. }
  280. /**
  281. * Gets allowable values of the enum
  282. *
  283. * @return string[]
  284. */
  285. public function getContentTypeAllowableValues()
  286. {
  287. return [
  288. self::CONTENT_TYPE_MARKDOWN,
  289. self::CONTENT_TYPE_MARKDOWN_E2,
  290. ];
  291. }
  292. /**
  293. * Associative array for storing property values
  294. *
  295. * @var mixed[]
  296. */
  297. protected $container = [];
  298. /**
  299. * Constructor
  300. *
  301. * @param mixed[]|null $data Associated array of property values
  302. * initializing the model
  303. */
  304. public function __construct(?array $data = null)
  305. {
  306. $this->setIfExists('word', $data ?? [], null);
  307. $this->setIfExists('tag', $data ?? [], null);
  308. $this->setIfExists('meaning', $data ?? [], null);
  309. $this->setIfExists('language', $data ?? [], null);
  310. $this->setIfExists('other_meaning', $data ?? [], null);
  311. $this->setIfExists('note', $data ?? [], null);
  312. $this->setIfExists('summary', $data ?? [], null);
  313. $this->setIfExists('quality', $data ?? [], null);
  314. $this->setIfExists('content_type', $data ?? [], 'markdown-e2');
  315. $this->setIfExists('redirect', $data ?? [], null);
  316. }
  317. /**
  318. * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName
  319. * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the
  320. * $this->openAPINullablesSetToNull array
  321. *
  322. * @param string $variableName
  323. * @param array $fields
  324. * @param mixed $defaultValue
  325. */
  326. private function setIfExists(string $variableName, array $fields, $defaultValue): void
  327. {
  328. if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) {
  329. $this->openAPINullablesSetToNull[] = $variableName;
  330. }
  331. $this->container[$variableName] = $fields[$variableName] ?? $defaultValue;
  332. }
  333. /**
  334. * Show all the invalid properties with reasons.
  335. *
  336. * @return array invalid properties with reasons
  337. */
  338. public function listInvalidProperties()
  339. {
  340. $invalidProperties = [];
  341. if ($this->container['word'] === null) {
  342. $invalidProperties[] = "'word' can't be null";
  343. }
  344. if ($this->container['meaning'] === null) {
  345. $invalidProperties[] = "'meaning' can't be null";
  346. }
  347. if ($this->container['language'] === null) {
  348. $invalidProperties[] = "'language' can't be null";
  349. }
  350. $allowedValues = $this->getQualityAllowableValues();
  351. if (!is_null($this->container['quality']) && !in_array($this->container['quality'], $allowedValues, true)) {
  352. $invalidProperties[] = sprintf(
  353. "invalid value '%s' for 'quality', must be one of '%s'",
  354. $this->container['quality'],
  355. implode("', '", $allowedValues)
  356. );
  357. }
  358. $allowedValues = $this->getContentTypeAllowableValues();
  359. if (!is_null($this->container['content_type']) && !in_array($this->container['content_type'], $allowedValues, true)) {
  360. $invalidProperties[] = sprintf(
  361. "invalid value '%s' for 'content_type', must be one of '%s'",
  362. $this->container['content_type'],
  363. implode("', '", $allowedValues)
  364. );
  365. }
  366. return $invalidProperties;
  367. }
  368. /**
  369. * Validate all the properties in the model
  370. * return true if all passed
  371. *
  372. * @return bool True if all properties are valid
  373. */
  374. public function valid()
  375. {
  376. return count($this->listInvalidProperties()) === 0;
  377. }
  378. /**
  379. * Gets word
  380. *
  381. * @return string
  382. */
  383. public function getWord()
  384. {
  385. return $this->container['word'];
  386. }
  387. /**
  388. * Sets word
  389. *
  390. * @param string $word 巴利词,建立后不能改
  391. *
  392. * @return self
  393. */
  394. public function setWord($word)
  395. {
  396. if (is_null($word)) {
  397. throw new \InvalidArgumentException('non-nullable word cannot be null');
  398. }
  399. $this->container['word'] = $word;
  400. return $this;
  401. }
  402. /**
  403. * Gets tag
  404. *
  405. * @return string|null
  406. */
  407. public function getTag()
  408. {
  409. return $this->container['tag'];
  410. }
  411. /**
  412. * Sets tag
  413. *
  414. * @param string|null $tag 义项(同词多义时区分),不能含 @,建立后不能改
  415. *
  416. * @return self
  417. */
  418. public function setTag($tag)
  419. {
  420. if (is_null($tag)) {
  421. array_push($this->openAPINullablesSetToNull, 'tag');
  422. } else {
  423. $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
  424. $index = array_search('tag', $nullablesSetToNull);
  425. if ($index !== FALSE) {
  426. unset($nullablesSetToNull[$index]);
  427. $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
  428. }
  429. }
  430. $this->container['tag'] = $tag;
  431. return $this;
  432. }
  433. /**
  434. * Gets meaning
  435. *
  436. * @return string
  437. */
  438. public function getMeaning()
  439. {
  440. return $this->container['meaning'];
  441. }
  442. /**
  443. * Sets meaning
  444. *
  445. * @param string $meaning 释义
  446. *
  447. * @return self
  448. */
  449. public function setMeaning($meaning)
  450. {
  451. if (is_null($meaning)) {
  452. throw new \InvalidArgumentException('non-nullable meaning cannot be null');
  453. }
  454. $this->container['meaning'] = $meaning;
  455. return $this;
  456. }
  457. /**
  458. * Gets language
  459. *
  460. * @return string
  461. */
  462. public function getLanguage()
  463. {
  464. return $this->container['language'];
  465. }
  466. /**
  467. * Sets language
  468. *
  469. * @param string $language 语言
  470. *
  471. * @return self
  472. */
  473. public function setLanguage($language)
  474. {
  475. if (is_null($language)) {
  476. throw new \InvalidArgumentException('non-nullable language cannot be null');
  477. }
  478. $this->container['language'] = $language;
  479. return $this;
  480. }
  481. /**
  482. * Gets other_meaning
  483. *
  484. * @return string|null
  485. */
  486. public function getOtherMeaning()
  487. {
  488. return $this->container['other_meaning'];
  489. }
  490. /**
  491. * Sets other_meaning
  492. *
  493. * @param string|null $other_meaning 其它释义
  494. *
  495. * @return self
  496. */
  497. public function setOtherMeaning($other_meaning)
  498. {
  499. if (is_null($other_meaning)) {
  500. array_push($this->openAPINullablesSetToNull, 'other_meaning');
  501. } else {
  502. $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
  503. $index = array_search('other_meaning', $nullablesSetToNull);
  504. if ($index !== FALSE) {
  505. unset($nullablesSetToNull[$index]);
  506. $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
  507. }
  508. }
  509. $this->container['other_meaning'] = $other_meaning;
  510. return $this;
  511. }
  512. /**
  513. * Gets note
  514. *
  515. * @return string|null
  516. */
  517. public function getNote()
  518. {
  519. return $this->container['note'];
  520. }
  521. /**
  522. * Sets note
  523. *
  524. * @param string|null $note 正文
  525. *
  526. * @return self
  527. */
  528. public function setNote($note)
  529. {
  530. if (is_null($note)) {
  531. array_push($this->openAPINullablesSetToNull, 'note');
  532. } else {
  533. $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
  534. $index = array_search('note', $nullablesSetToNull);
  535. if ($index !== FALSE) {
  536. unset($nullablesSetToNull[$index]);
  537. $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
  538. }
  539. }
  540. $this->container['note'] = $note;
  541. return $this;
  542. }
  543. /**
  544. * Gets summary
  545. *
  546. * @return string|null
  547. */
  548. public function getSummary()
  549. {
  550. return $this->container['summary'];
  551. }
  552. /**
  553. * Sets summary
  554. *
  555. * @param string|null $summary 摘要,格式与 note 相同
  556. *
  557. * @return self
  558. */
  559. public function setSummary($summary)
  560. {
  561. if (is_null($summary)) {
  562. array_push($this->openAPINullablesSetToNull, 'summary');
  563. } else {
  564. $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
  565. $index = array_search('summary', $nullablesSetToNull);
  566. if ($index !== FALSE) {
  567. unset($nullablesSetToNull[$index]);
  568. $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
  569. }
  570. }
  571. $this->container['summary'] = $summary;
  572. return $this;
  573. }
  574. /**
  575. * Gets quality
  576. *
  577. * @return string|null
  578. */
  579. public function getQuality()
  580. {
  581. return $this->container['quality'];
  582. }
  583. /**
  584. * Sets quality
  585. *
  586. * @param string|null $quality 质量
  587. *
  588. * @return self
  589. */
  590. public function setQuality($quality)
  591. {
  592. if (is_null($quality)) {
  593. array_push($this->openAPINullablesSetToNull, 'quality');
  594. } else {
  595. $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
  596. $index = array_search('quality', $nullablesSetToNull);
  597. if ($index !== FALSE) {
  598. unset($nullablesSetToNull[$index]);
  599. $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
  600. }
  601. }
  602. $allowedValues = $this->getQualityAllowableValues();
  603. if (!is_null($quality) && !in_array($quality, $allowedValues, true)) {
  604. throw new \InvalidArgumentException(
  605. sprintf(
  606. "Invalid value '%s' for 'quality', must be one of '%s'",
  607. $quality,
  608. implode("', '", $allowedValues)
  609. )
  610. );
  611. }
  612. $this->container['quality'] = $quality;
  613. return $this;
  614. }
  615. /**
  616. * Gets content_type
  617. *
  618. * @return string|null
  619. */
  620. public function getContentType()
  621. {
  622. return $this->container['content_type'];
  623. }
  624. /**
  625. * Sets content_type
  626. *
  627. * @param string|null $content_type 正文方言
  628. *
  629. * @return self
  630. */
  631. public function setContentType($content_type)
  632. {
  633. if (is_null($content_type)) {
  634. throw new \InvalidArgumentException('non-nullable content_type cannot be null');
  635. }
  636. $allowedValues = $this->getContentTypeAllowableValues();
  637. if (!in_array($content_type, $allowedValues, true)) {
  638. throw new \InvalidArgumentException(
  639. sprintf(
  640. "Invalid value '%s' for 'content_type', must be one of '%s'",
  641. $content_type,
  642. implode("', '", $allowedValues)
  643. )
  644. );
  645. }
  646. $this->container['content_type'] = $content_type;
  647. return $this;
  648. }
  649. /**
  650. * Gets redirect
  651. *
  652. * @return string|null
  653. */
  654. public function getRedirect()
  655. {
  656. return $this->container['redirect'];
  657. }
  658. /**
  659. * Sets redirect
  660. *
  661. * @param string|null $redirect 重定向到 word 或 word@tag
  662. *
  663. * @return self
  664. */
  665. public function setRedirect($redirect)
  666. {
  667. if (is_null($redirect)) {
  668. array_push($this->openAPINullablesSetToNull, 'redirect');
  669. } else {
  670. $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
  671. $index = array_search('redirect', $nullablesSetToNull);
  672. if ($index !== FALSE) {
  673. unset($nullablesSetToNull[$index]);
  674. $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
  675. }
  676. }
  677. $this->container['redirect'] = $redirect;
  678. return $this;
  679. }
  680. /**
  681. * Returns true if offset exists. False otherwise.
  682. *
  683. * @param integer|string $offset Offset
  684. *
  685. * @return boolean
  686. */
  687. public function offsetExists(mixed $offset): bool
  688. {
  689. return isset($this->container[$offset]);
  690. }
  691. /**
  692. * Gets offset.
  693. *
  694. * @param integer|string $offset Offset
  695. *
  696. * @return mixed|null
  697. */
  698. #[\ReturnTypeWillChange]
  699. public function offsetGet(mixed $offset)
  700. {
  701. return $this->container[$offset] ?? null;
  702. }
  703. /**
  704. * Sets value based on offset.
  705. *
  706. * @param int|null $offset Offset
  707. * @param mixed $value Value to be set
  708. *
  709. * @return void
  710. */
  711. public function offsetSet($offset, $value): void
  712. {
  713. if (is_null($offset)) {
  714. $this->container[] = $value;
  715. } else {
  716. $this->container[$offset] = $value;
  717. }
  718. }
  719. /**
  720. * Unsets offset.
  721. *
  722. * @param integer|string $offset Offset
  723. *
  724. * @return void
  725. */
  726. public function offsetUnset(mixed $offset): void
  727. {
  728. unset($this->container[$offset]);
  729. }
  730. /**
  731. * Serializes the object to a value that can be serialized natively by json_encode().
  732. * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
  733. *
  734. * @return mixed Returns data which can be serialized by json_encode(), which is a value
  735. * of any type other than a resource.
  736. */
  737. #[\ReturnTypeWillChange]
  738. public function jsonSerialize()
  739. {
  740. return ObjectSerializer::sanitizeForSerialization($this);
  741. }
  742. /**
  743. * Gets the string presentation of the object
  744. *
  745. * @return string
  746. */
  747. public function __toString()
  748. {
  749. return json_encode(
  750. ObjectSerializer::sanitizeForSerialization($this),
  751. JSON_PRETTY_PRINT
  752. );
  753. }
  754. /**
  755. * Gets a header-safe presentation of the object
  756. *
  757. * @return string
  758. */
  759. public function toHeaderValue()
  760. {
  761. return json_encode(ObjectSerializer::sanitizeForSerialization($this));
  762. }
  763. }