easyjson.go 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665
  1. // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
  2. package cast
  3. import (
  4. json "encoding/json"
  5. easyjson "github.com/mailru/easyjson"
  6. jlexer "github.com/mailru/easyjson/jlexer"
  7. jwriter "github.com/mailru/easyjson/jwriter"
  8. )
  9. // suppress unused package warning
  10. var (
  11. _ *json.RawMessage
  12. _ *jlexer.Lexer
  13. _ *jwriter.Writer
  14. _ easyjson.Marshaler
  15. )
  16. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast(in *jlexer.Lexer, out *StopCastingParams) {
  17. isTopLevel := in.IsStart()
  18. if in.IsNull() {
  19. if isTopLevel {
  20. in.Consumed()
  21. }
  22. in.Skip()
  23. return
  24. }
  25. in.Delim('{')
  26. for !in.IsDelim('}') {
  27. key := in.UnsafeFieldName(false)
  28. in.WantColon()
  29. if in.IsNull() {
  30. in.Skip()
  31. in.WantComma()
  32. continue
  33. }
  34. switch key {
  35. case "sinkName":
  36. out.SinkName = string(in.String())
  37. default:
  38. in.SkipRecursive()
  39. }
  40. in.WantComma()
  41. }
  42. in.Delim('}')
  43. if isTopLevel {
  44. in.Consumed()
  45. }
  46. }
  47. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast(out *jwriter.Writer, in StopCastingParams) {
  48. out.RawByte('{')
  49. first := true
  50. _ = first
  51. {
  52. const prefix string = ",\"sinkName\":"
  53. out.RawString(prefix[1:])
  54. out.String(string(in.SinkName))
  55. }
  56. out.RawByte('}')
  57. }
  58. // MarshalJSON supports json.Marshaler interface
  59. func (v StopCastingParams) MarshalJSON() ([]byte, error) {
  60. w := jwriter.Writer{}
  61. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast(&w, v)
  62. return w.Buffer.BuildBytes(), w.Error
  63. }
  64. // MarshalEasyJSON supports easyjson.Marshaler interface
  65. func (v StopCastingParams) MarshalEasyJSON(w *jwriter.Writer) {
  66. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast(w, v)
  67. }
  68. // UnmarshalJSON supports json.Unmarshaler interface
  69. func (v *StopCastingParams) UnmarshalJSON(data []byte) error {
  70. r := jlexer.Lexer{Data: data}
  71. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast(&r, v)
  72. return r.Error()
  73. }
  74. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  75. func (v *StopCastingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  76. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast(l, v)
  77. }
  78. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast1(in *jlexer.Lexer, out *StartTabMirroringParams) {
  79. isTopLevel := in.IsStart()
  80. if in.IsNull() {
  81. if isTopLevel {
  82. in.Consumed()
  83. }
  84. in.Skip()
  85. return
  86. }
  87. in.Delim('{')
  88. for !in.IsDelim('}') {
  89. key := in.UnsafeFieldName(false)
  90. in.WantColon()
  91. if in.IsNull() {
  92. in.Skip()
  93. in.WantComma()
  94. continue
  95. }
  96. switch key {
  97. case "sinkName":
  98. out.SinkName = string(in.String())
  99. default:
  100. in.SkipRecursive()
  101. }
  102. in.WantComma()
  103. }
  104. in.Delim('}')
  105. if isTopLevel {
  106. in.Consumed()
  107. }
  108. }
  109. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast1(out *jwriter.Writer, in StartTabMirroringParams) {
  110. out.RawByte('{')
  111. first := true
  112. _ = first
  113. {
  114. const prefix string = ",\"sinkName\":"
  115. out.RawString(prefix[1:])
  116. out.String(string(in.SinkName))
  117. }
  118. out.RawByte('}')
  119. }
  120. // MarshalJSON supports json.Marshaler interface
  121. func (v StartTabMirroringParams) MarshalJSON() ([]byte, error) {
  122. w := jwriter.Writer{}
  123. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast1(&w, v)
  124. return w.Buffer.BuildBytes(), w.Error
  125. }
  126. // MarshalEasyJSON supports easyjson.Marshaler interface
  127. func (v StartTabMirroringParams) MarshalEasyJSON(w *jwriter.Writer) {
  128. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast1(w, v)
  129. }
  130. // UnmarshalJSON supports json.Unmarshaler interface
  131. func (v *StartTabMirroringParams) UnmarshalJSON(data []byte) error {
  132. r := jlexer.Lexer{Data: data}
  133. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast1(&r, v)
  134. return r.Error()
  135. }
  136. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  137. func (v *StartTabMirroringParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  138. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast1(l, v)
  139. }
  140. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast2(in *jlexer.Lexer, out *StartDesktopMirroringParams) {
  141. isTopLevel := in.IsStart()
  142. if in.IsNull() {
  143. if isTopLevel {
  144. in.Consumed()
  145. }
  146. in.Skip()
  147. return
  148. }
  149. in.Delim('{')
  150. for !in.IsDelim('}') {
  151. key := in.UnsafeFieldName(false)
  152. in.WantColon()
  153. if in.IsNull() {
  154. in.Skip()
  155. in.WantComma()
  156. continue
  157. }
  158. switch key {
  159. case "sinkName":
  160. out.SinkName = string(in.String())
  161. default:
  162. in.SkipRecursive()
  163. }
  164. in.WantComma()
  165. }
  166. in.Delim('}')
  167. if isTopLevel {
  168. in.Consumed()
  169. }
  170. }
  171. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast2(out *jwriter.Writer, in StartDesktopMirroringParams) {
  172. out.RawByte('{')
  173. first := true
  174. _ = first
  175. {
  176. const prefix string = ",\"sinkName\":"
  177. out.RawString(prefix[1:])
  178. out.String(string(in.SinkName))
  179. }
  180. out.RawByte('}')
  181. }
  182. // MarshalJSON supports json.Marshaler interface
  183. func (v StartDesktopMirroringParams) MarshalJSON() ([]byte, error) {
  184. w := jwriter.Writer{}
  185. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast2(&w, v)
  186. return w.Buffer.BuildBytes(), w.Error
  187. }
  188. // MarshalEasyJSON supports easyjson.Marshaler interface
  189. func (v StartDesktopMirroringParams) MarshalEasyJSON(w *jwriter.Writer) {
  190. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast2(w, v)
  191. }
  192. // UnmarshalJSON supports json.Unmarshaler interface
  193. func (v *StartDesktopMirroringParams) UnmarshalJSON(data []byte) error {
  194. r := jlexer.Lexer{Data: data}
  195. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast2(&r, v)
  196. return r.Error()
  197. }
  198. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  199. func (v *StartDesktopMirroringParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  200. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast2(l, v)
  201. }
  202. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast3(in *jlexer.Lexer, out *Sink) {
  203. isTopLevel := in.IsStart()
  204. if in.IsNull() {
  205. if isTopLevel {
  206. in.Consumed()
  207. }
  208. in.Skip()
  209. return
  210. }
  211. in.Delim('{')
  212. for !in.IsDelim('}') {
  213. key := in.UnsafeFieldName(false)
  214. in.WantColon()
  215. if in.IsNull() {
  216. in.Skip()
  217. in.WantComma()
  218. continue
  219. }
  220. switch key {
  221. case "name":
  222. out.Name = string(in.String())
  223. case "id":
  224. out.ID = string(in.String())
  225. case "session":
  226. out.Session = string(in.String())
  227. default:
  228. in.SkipRecursive()
  229. }
  230. in.WantComma()
  231. }
  232. in.Delim('}')
  233. if isTopLevel {
  234. in.Consumed()
  235. }
  236. }
  237. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast3(out *jwriter.Writer, in Sink) {
  238. out.RawByte('{')
  239. first := true
  240. _ = first
  241. {
  242. const prefix string = ",\"name\":"
  243. out.RawString(prefix[1:])
  244. out.String(string(in.Name))
  245. }
  246. {
  247. const prefix string = ",\"id\":"
  248. out.RawString(prefix)
  249. out.String(string(in.ID))
  250. }
  251. if in.Session != "" {
  252. const prefix string = ",\"session\":"
  253. out.RawString(prefix)
  254. out.String(string(in.Session))
  255. }
  256. out.RawByte('}')
  257. }
  258. // MarshalJSON supports json.Marshaler interface
  259. func (v Sink) MarshalJSON() ([]byte, error) {
  260. w := jwriter.Writer{}
  261. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast3(&w, v)
  262. return w.Buffer.BuildBytes(), w.Error
  263. }
  264. // MarshalEasyJSON supports easyjson.Marshaler interface
  265. func (v Sink) MarshalEasyJSON(w *jwriter.Writer) {
  266. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast3(w, v)
  267. }
  268. // UnmarshalJSON supports json.Unmarshaler interface
  269. func (v *Sink) UnmarshalJSON(data []byte) error {
  270. r := jlexer.Lexer{Data: data}
  271. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast3(&r, v)
  272. return r.Error()
  273. }
  274. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  275. func (v *Sink) UnmarshalEasyJSON(l *jlexer.Lexer) {
  276. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast3(l, v)
  277. }
  278. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast4(in *jlexer.Lexer, out *SetSinkToUseParams) {
  279. isTopLevel := in.IsStart()
  280. if in.IsNull() {
  281. if isTopLevel {
  282. in.Consumed()
  283. }
  284. in.Skip()
  285. return
  286. }
  287. in.Delim('{')
  288. for !in.IsDelim('}') {
  289. key := in.UnsafeFieldName(false)
  290. in.WantColon()
  291. if in.IsNull() {
  292. in.Skip()
  293. in.WantComma()
  294. continue
  295. }
  296. switch key {
  297. case "sinkName":
  298. out.SinkName = string(in.String())
  299. default:
  300. in.SkipRecursive()
  301. }
  302. in.WantComma()
  303. }
  304. in.Delim('}')
  305. if isTopLevel {
  306. in.Consumed()
  307. }
  308. }
  309. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast4(out *jwriter.Writer, in SetSinkToUseParams) {
  310. out.RawByte('{')
  311. first := true
  312. _ = first
  313. {
  314. const prefix string = ",\"sinkName\":"
  315. out.RawString(prefix[1:])
  316. out.String(string(in.SinkName))
  317. }
  318. out.RawByte('}')
  319. }
  320. // MarshalJSON supports json.Marshaler interface
  321. func (v SetSinkToUseParams) MarshalJSON() ([]byte, error) {
  322. w := jwriter.Writer{}
  323. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast4(&w, v)
  324. return w.Buffer.BuildBytes(), w.Error
  325. }
  326. // MarshalEasyJSON supports easyjson.Marshaler interface
  327. func (v SetSinkToUseParams) MarshalEasyJSON(w *jwriter.Writer) {
  328. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast4(w, v)
  329. }
  330. // UnmarshalJSON supports json.Unmarshaler interface
  331. func (v *SetSinkToUseParams) UnmarshalJSON(data []byte) error {
  332. r := jlexer.Lexer{Data: data}
  333. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast4(&r, v)
  334. return r.Error()
  335. }
  336. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  337. func (v *SetSinkToUseParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  338. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast4(l, v)
  339. }
  340. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast5(in *jlexer.Lexer, out *EventSinksUpdated) {
  341. isTopLevel := in.IsStart()
  342. if in.IsNull() {
  343. if isTopLevel {
  344. in.Consumed()
  345. }
  346. in.Skip()
  347. return
  348. }
  349. in.Delim('{')
  350. for !in.IsDelim('}') {
  351. key := in.UnsafeFieldName(false)
  352. in.WantColon()
  353. if in.IsNull() {
  354. in.Skip()
  355. in.WantComma()
  356. continue
  357. }
  358. switch key {
  359. case "sinks":
  360. if in.IsNull() {
  361. in.Skip()
  362. out.Sinks = nil
  363. } else {
  364. in.Delim('[')
  365. if out.Sinks == nil {
  366. if !in.IsDelim(']') {
  367. out.Sinks = make([]*Sink, 0, 8)
  368. } else {
  369. out.Sinks = []*Sink{}
  370. }
  371. } else {
  372. out.Sinks = (out.Sinks)[:0]
  373. }
  374. for !in.IsDelim(']') {
  375. var v1 *Sink
  376. if in.IsNull() {
  377. in.Skip()
  378. v1 = nil
  379. } else {
  380. if v1 == nil {
  381. v1 = new(Sink)
  382. }
  383. (*v1).UnmarshalEasyJSON(in)
  384. }
  385. out.Sinks = append(out.Sinks, v1)
  386. in.WantComma()
  387. }
  388. in.Delim(']')
  389. }
  390. default:
  391. in.SkipRecursive()
  392. }
  393. in.WantComma()
  394. }
  395. in.Delim('}')
  396. if isTopLevel {
  397. in.Consumed()
  398. }
  399. }
  400. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast5(out *jwriter.Writer, in EventSinksUpdated) {
  401. out.RawByte('{')
  402. first := true
  403. _ = first
  404. {
  405. const prefix string = ",\"sinks\":"
  406. out.RawString(prefix[1:])
  407. if in.Sinks == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  408. out.RawString("null")
  409. } else {
  410. out.RawByte('[')
  411. for v2, v3 := range in.Sinks {
  412. if v2 > 0 {
  413. out.RawByte(',')
  414. }
  415. if v3 == nil {
  416. out.RawString("null")
  417. } else {
  418. (*v3).MarshalEasyJSON(out)
  419. }
  420. }
  421. out.RawByte(']')
  422. }
  423. }
  424. out.RawByte('}')
  425. }
  426. // MarshalJSON supports json.Marshaler interface
  427. func (v EventSinksUpdated) MarshalJSON() ([]byte, error) {
  428. w := jwriter.Writer{}
  429. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast5(&w, v)
  430. return w.Buffer.BuildBytes(), w.Error
  431. }
  432. // MarshalEasyJSON supports easyjson.Marshaler interface
  433. func (v EventSinksUpdated) MarshalEasyJSON(w *jwriter.Writer) {
  434. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast5(w, v)
  435. }
  436. // UnmarshalJSON supports json.Unmarshaler interface
  437. func (v *EventSinksUpdated) UnmarshalJSON(data []byte) error {
  438. r := jlexer.Lexer{Data: data}
  439. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast5(&r, v)
  440. return r.Error()
  441. }
  442. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  443. func (v *EventSinksUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  444. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast5(l, v)
  445. }
  446. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast6(in *jlexer.Lexer, out *EventIssueUpdated) {
  447. isTopLevel := in.IsStart()
  448. if in.IsNull() {
  449. if isTopLevel {
  450. in.Consumed()
  451. }
  452. in.Skip()
  453. return
  454. }
  455. in.Delim('{')
  456. for !in.IsDelim('}') {
  457. key := in.UnsafeFieldName(false)
  458. in.WantColon()
  459. if in.IsNull() {
  460. in.Skip()
  461. in.WantComma()
  462. continue
  463. }
  464. switch key {
  465. case "issueMessage":
  466. out.IssueMessage = string(in.String())
  467. default:
  468. in.SkipRecursive()
  469. }
  470. in.WantComma()
  471. }
  472. in.Delim('}')
  473. if isTopLevel {
  474. in.Consumed()
  475. }
  476. }
  477. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast6(out *jwriter.Writer, in EventIssueUpdated) {
  478. out.RawByte('{')
  479. first := true
  480. _ = first
  481. {
  482. const prefix string = ",\"issueMessage\":"
  483. out.RawString(prefix[1:])
  484. out.String(string(in.IssueMessage))
  485. }
  486. out.RawByte('}')
  487. }
  488. // MarshalJSON supports json.Marshaler interface
  489. func (v EventIssueUpdated) MarshalJSON() ([]byte, error) {
  490. w := jwriter.Writer{}
  491. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast6(&w, v)
  492. return w.Buffer.BuildBytes(), w.Error
  493. }
  494. // MarshalEasyJSON supports easyjson.Marshaler interface
  495. func (v EventIssueUpdated) MarshalEasyJSON(w *jwriter.Writer) {
  496. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast6(w, v)
  497. }
  498. // UnmarshalJSON supports json.Unmarshaler interface
  499. func (v *EventIssueUpdated) UnmarshalJSON(data []byte) error {
  500. r := jlexer.Lexer{Data: data}
  501. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast6(&r, v)
  502. return r.Error()
  503. }
  504. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  505. func (v *EventIssueUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  506. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast6(l, v)
  507. }
  508. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast7(in *jlexer.Lexer, out *EnableParams) {
  509. isTopLevel := in.IsStart()
  510. if in.IsNull() {
  511. if isTopLevel {
  512. in.Consumed()
  513. }
  514. in.Skip()
  515. return
  516. }
  517. in.Delim('{')
  518. for !in.IsDelim('}') {
  519. key := in.UnsafeFieldName(false)
  520. in.WantColon()
  521. if in.IsNull() {
  522. in.Skip()
  523. in.WantComma()
  524. continue
  525. }
  526. switch key {
  527. case "presentationUrl":
  528. out.PresentationURL = string(in.String())
  529. default:
  530. in.SkipRecursive()
  531. }
  532. in.WantComma()
  533. }
  534. in.Delim('}')
  535. if isTopLevel {
  536. in.Consumed()
  537. }
  538. }
  539. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast7(out *jwriter.Writer, in EnableParams) {
  540. out.RawByte('{')
  541. first := true
  542. _ = first
  543. if in.PresentationURL != "" {
  544. const prefix string = ",\"presentationUrl\":"
  545. first = false
  546. out.RawString(prefix[1:])
  547. out.String(string(in.PresentationURL))
  548. }
  549. out.RawByte('}')
  550. }
  551. // MarshalJSON supports json.Marshaler interface
  552. func (v EnableParams) MarshalJSON() ([]byte, error) {
  553. w := jwriter.Writer{}
  554. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast7(&w, v)
  555. return w.Buffer.BuildBytes(), w.Error
  556. }
  557. // MarshalEasyJSON supports easyjson.Marshaler interface
  558. func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
  559. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast7(w, v)
  560. }
  561. // UnmarshalJSON supports json.Unmarshaler interface
  562. func (v *EnableParams) UnmarshalJSON(data []byte) error {
  563. r := jlexer.Lexer{Data: data}
  564. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast7(&r, v)
  565. return r.Error()
  566. }
  567. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  568. func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  569. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast7(l, v)
  570. }
  571. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast8(in *jlexer.Lexer, out *DisableParams) {
  572. isTopLevel := in.IsStart()
  573. if in.IsNull() {
  574. if isTopLevel {
  575. in.Consumed()
  576. }
  577. in.Skip()
  578. return
  579. }
  580. in.Delim('{')
  581. for !in.IsDelim('}') {
  582. key := in.UnsafeFieldName(false)
  583. in.WantColon()
  584. if in.IsNull() {
  585. in.Skip()
  586. in.WantComma()
  587. continue
  588. }
  589. switch key {
  590. default:
  591. in.SkipRecursive()
  592. }
  593. in.WantComma()
  594. }
  595. in.Delim('}')
  596. if isTopLevel {
  597. in.Consumed()
  598. }
  599. }
  600. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast8(out *jwriter.Writer, in DisableParams) {
  601. out.RawByte('{')
  602. first := true
  603. _ = first
  604. out.RawByte('}')
  605. }
  606. // MarshalJSON supports json.Marshaler interface
  607. func (v DisableParams) MarshalJSON() ([]byte, error) {
  608. w := jwriter.Writer{}
  609. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast8(&w, v)
  610. return w.Buffer.BuildBytes(), w.Error
  611. }
  612. // MarshalEasyJSON supports easyjson.Marshaler interface
  613. func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
  614. easyjsonC5a4559bEncodeGithubComChromedpCdprotoCast8(w, v)
  615. }
  616. // UnmarshalJSON supports json.Unmarshaler interface
  617. func (v *DisableParams) UnmarshalJSON(data []byte) error {
  618. r := jlexer.Lexer{Data: data}
  619. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast8(&r, v)
  620. return r.Error()
  621. }
  622. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  623. func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  624. easyjsonC5a4559bDecodeGithubComChromedpCdprotoCast8(l, v)
  625. }