easyjson.go 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880
  1. // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
  2. package animation
  3. import (
  4. json "encoding/json"
  5. runtime "github.com/chromedp/cdproto/runtime"
  6. easyjson "github.com/mailru/easyjson"
  7. jlexer "github.com/mailru/easyjson/jlexer"
  8. jwriter "github.com/mailru/easyjson/jwriter"
  9. )
  10. // suppress unused package warning
  11. var (
  12. _ *json.RawMessage
  13. _ *jlexer.Lexer
  14. _ *jwriter.Writer
  15. _ easyjson.Marshaler
  16. )
  17. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation(in *jlexer.Lexer, out *ViewOrScrollTimeline) {
  18. isTopLevel := in.IsStart()
  19. if in.IsNull() {
  20. if isTopLevel {
  21. in.Consumed()
  22. }
  23. in.Skip()
  24. return
  25. }
  26. in.Delim('{')
  27. for !in.IsDelim('}') {
  28. key := in.UnsafeFieldName(false)
  29. in.WantColon()
  30. if in.IsNull() {
  31. in.Skip()
  32. in.WantComma()
  33. continue
  34. }
  35. switch key {
  36. case "sourceNodeId":
  37. (out.SourceNodeID).UnmarshalEasyJSON(in)
  38. case "startOffset":
  39. out.StartOffset = float64(in.Float64())
  40. case "endOffset":
  41. out.EndOffset = float64(in.Float64())
  42. case "subjectNodeId":
  43. (out.SubjectNodeID).UnmarshalEasyJSON(in)
  44. case "axis":
  45. (out.Axis).UnmarshalEasyJSON(in)
  46. default:
  47. in.SkipRecursive()
  48. }
  49. in.WantComma()
  50. }
  51. in.Delim('}')
  52. if isTopLevel {
  53. in.Consumed()
  54. }
  55. }
  56. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation(out *jwriter.Writer, in ViewOrScrollTimeline) {
  57. out.RawByte('{')
  58. first := true
  59. _ = first
  60. if in.SourceNodeID != 0 {
  61. const prefix string = ",\"sourceNodeId\":"
  62. first = false
  63. out.RawString(prefix[1:])
  64. out.Int64(int64(in.SourceNodeID))
  65. }
  66. if in.StartOffset != 0 {
  67. const prefix string = ",\"startOffset\":"
  68. if first {
  69. first = false
  70. out.RawString(prefix[1:])
  71. } else {
  72. out.RawString(prefix)
  73. }
  74. out.Float64(float64(in.StartOffset))
  75. }
  76. if in.EndOffset != 0 {
  77. const prefix string = ",\"endOffset\":"
  78. if first {
  79. first = false
  80. out.RawString(prefix[1:])
  81. } else {
  82. out.RawString(prefix)
  83. }
  84. out.Float64(float64(in.EndOffset))
  85. }
  86. if in.SubjectNodeID != 0 {
  87. const prefix string = ",\"subjectNodeId\":"
  88. if first {
  89. first = false
  90. out.RawString(prefix[1:])
  91. } else {
  92. out.RawString(prefix)
  93. }
  94. out.Int64(int64(in.SubjectNodeID))
  95. }
  96. {
  97. const prefix string = ",\"axis\":"
  98. if first {
  99. first = false
  100. out.RawString(prefix[1:])
  101. } else {
  102. out.RawString(prefix)
  103. }
  104. (in.Axis).MarshalEasyJSON(out)
  105. }
  106. out.RawByte('}')
  107. }
  108. // MarshalJSON supports json.Marshaler interface
  109. func (v ViewOrScrollTimeline) MarshalJSON() ([]byte, error) {
  110. w := jwriter.Writer{}
  111. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation(&w, v)
  112. return w.Buffer.BuildBytes(), w.Error
  113. }
  114. // MarshalEasyJSON supports easyjson.Marshaler interface
  115. func (v ViewOrScrollTimeline) MarshalEasyJSON(w *jwriter.Writer) {
  116. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation(w, v)
  117. }
  118. // UnmarshalJSON supports json.Unmarshaler interface
  119. func (v *ViewOrScrollTimeline) UnmarshalJSON(data []byte) error {
  120. r := jlexer.Lexer{Data: data}
  121. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation(&r, v)
  122. return r.Error()
  123. }
  124. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  125. func (v *ViewOrScrollTimeline) UnmarshalEasyJSON(l *jlexer.Lexer) {
  126. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation(l, v)
  127. }
  128. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation1(in *jlexer.Lexer, out *SetTimingParams) {
  129. isTopLevel := in.IsStart()
  130. if in.IsNull() {
  131. if isTopLevel {
  132. in.Consumed()
  133. }
  134. in.Skip()
  135. return
  136. }
  137. in.Delim('{')
  138. for !in.IsDelim('}') {
  139. key := in.UnsafeFieldName(false)
  140. in.WantColon()
  141. if in.IsNull() {
  142. in.Skip()
  143. in.WantComma()
  144. continue
  145. }
  146. switch key {
  147. case "animationId":
  148. out.AnimationID = string(in.String())
  149. case "duration":
  150. out.Duration = float64(in.Float64())
  151. case "delay":
  152. out.Delay = float64(in.Float64())
  153. default:
  154. in.SkipRecursive()
  155. }
  156. in.WantComma()
  157. }
  158. in.Delim('}')
  159. if isTopLevel {
  160. in.Consumed()
  161. }
  162. }
  163. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation1(out *jwriter.Writer, in SetTimingParams) {
  164. out.RawByte('{')
  165. first := true
  166. _ = first
  167. {
  168. const prefix string = ",\"animationId\":"
  169. out.RawString(prefix[1:])
  170. out.String(string(in.AnimationID))
  171. }
  172. {
  173. const prefix string = ",\"duration\":"
  174. out.RawString(prefix)
  175. out.Float64(float64(in.Duration))
  176. }
  177. {
  178. const prefix string = ",\"delay\":"
  179. out.RawString(prefix)
  180. out.Float64(float64(in.Delay))
  181. }
  182. out.RawByte('}')
  183. }
  184. // MarshalJSON supports json.Marshaler interface
  185. func (v SetTimingParams) MarshalJSON() ([]byte, error) {
  186. w := jwriter.Writer{}
  187. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation1(&w, v)
  188. return w.Buffer.BuildBytes(), w.Error
  189. }
  190. // MarshalEasyJSON supports easyjson.Marshaler interface
  191. func (v SetTimingParams) MarshalEasyJSON(w *jwriter.Writer) {
  192. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation1(w, v)
  193. }
  194. // UnmarshalJSON supports json.Unmarshaler interface
  195. func (v *SetTimingParams) UnmarshalJSON(data []byte) error {
  196. r := jlexer.Lexer{Data: data}
  197. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation1(&r, v)
  198. return r.Error()
  199. }
  200. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  201. func (v *SetTimingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  202. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation1(l, v)
  203. }
  204. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation2(in *jlexer.Lexer, out *SetPlaybackRateParams) {
  205. isTopLevel := in.IsStart()
  206. if in.IsNull() {
  207. if isTopLevel {
  208. in.Consumed()
  209. }
  210. in.Skip()
  211. return
  212. }
  213. in.Delim('{')
  214. for !in.IsDelim('}') {
  215. key := in.UnsafeFieldName(false)
  216. in.WantColon()
  217. if in.IsNull() {
  218. in.Skip()
  219. in.WantComma()
  220. continue
  221. }
  222. switch key {
  223. case "playbackRate":
  224. out.PlaybackRate = float64(in.Float64())
  225. default:
  226. in.SkipRecursive()
  227. }
  228. in.WantComma()
  229. }
  230. in.Delim('}')
  231. if isTopLevel {
  232. in.Consumed()
  233. }
  234. }
  235. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation2(out *jwriter.Writer, in SetPlaybackRateParams) {
  236. out.RawByte('{')
  237. first := true
  238. _ = first
  239. {
  240. const prefix string = ",\"playbackRate\":"
  241. out.RawString(prefix[1:])
  242. out.Float64(float64(in.PlaybackRate))
  243. }
  244. out.RawByte('}')
  245. }
  246. // MarshalJSON supports json.Marshaler interface
  247. func (v SetPlaybackRateParams) MarshalJSON() ([]byte, error) {
  248. w := jwriter.Writer{}
  249. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation2(&w, v)
  250. return w.Buffer.BuildBytes(), w.Error
  251. }
  252. // MarshalEasyJSON supports easyjson.Marshaler interface
  253. func (v SetPlaybackRateParams) MarshalEasyJSON(w *jwriter.Writer) {
  254. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation2(w, v)
  255. }
  256. // UnmarshalJSON supports json.Unmarshaler interface
  257. func (v *SetPlaybackRateParams) UnmarshalJSON(data []byte) error {
  258. r := jlexer.Lexer{Data: data}
  259. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation2(&r, v)
  260. return r.Error()
  261. }
  262. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  263. func (v *SetPlaybackRateParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  264. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation2(l, v)
  265. }
  266. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation3(in *jlexer.Lexer, out *SetPausedParams) {
  267. isTopLevel := in.IsStart()
  268. if in.IsNull() {
  269. if isTopLevel {
  270. in.Consumed()
  271. }
  272. in.Skip()
  273. return
  274. }
  275. in.Delim('{')
  276. for !in.IsDelim('}') {
  277. key := in.UnsafeFieldName(false)
  278. in.WantColon()
  279. if in.IsNull() {
  280. in.Skip()
  281. in.WantComma()
  282. continue
  283. }
  284. switch key {
  285. case "animations":
  286. if in.IsNull() {
  287. in.Skip()
  288. out.Animations = nil
  289. } else {
  290. in.Delim('[')
  291. if out.Animations == nil {
  292. if !in.IsDelim(']') {
  293. out.Animations = make([]string, 0, 4)
  294. } else {
  295. out.Animations = []string{}
  296. }
  297. } else {
  298. out.Animations = (out.Animations)[:0]
  299. }
  300. for !in.IsDelim(']') {
  301. var v1 string
  302. v1 = string(in.String())
  303. out.Animations = append(out.Animations, v1)
  304. in.WantComma()
  305. }
  306. in.Delim(']')
  307. }
  308. case "paused":
  309. out.Paused = bool(in.Bool())
  310. default:
  311. in.SkipRecursive()
  312. }
  313. in.WantComma()
  314. }
  315. in.Delim('}')
  316. if isTopLevel {
  317. in.Consumed()
  318. }
  319. }
  320. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation3(out *jwriter.Writer, in SetPausedParams) {
  321. out.RawByte('{')
  322. first := true
  323. _ = first
  324. {
  325. const prefix string = ",\"animations\":"
  326. out.RawString(prefix[1:])
  327. if in.Animations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  328. out.RawString("null")
  329. } else {
  330. out.RawByte('[')
  331. for v2, v3 := range in.Animations {
  332. if v2 > 0 {
  333. out.RawByte(',')
  334. }
  335. out.String(string(v3))
  336. }
  337. out.RawByte(']')
  338. }
  339. }
  340. {
  341. const prefix string = ",\"paused\":"
  342. out.RawString(prefix)
  343. out.Bool(bool(in.Paused))
  344. }
  345. out.RawByte('}')
  346. }
  347. // MarshalJSON supports json.Marshaler interface
  348. func (v SetPausedParams) MarshalJSON() ([]byte, error) {
  349. w := jwriter.Writer{}
  350. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation3(&w, v)
  351. return w.Buffer.BuildBytes(), w.Error
  352. }
  353. // MarshalEasyJSON supports easyjson.Marshaler interface
  354. func (v SetPausedParams) MarshalEasyJSON(w *jwriter.Writer) {
  355. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation3(w, v)
  356. }
  357. // UnmarshalJSON supports json.Unmarshaler interface
  358. func (v *SetPausedParams) UnmarshalJSON(data []byte) error {
  359. r := jlexer.Lexer{Data: data}
  360. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation3(&r, v)
  361. return r.Error()
  362. }
  363. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  364. func (v *SetPausedParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  365. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation3(l, v)
  366. }
  367. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation4(in *jlexer.Lexer, out *SeekAnimationsParams) {
  368. isTopLevel := in.IsStart()
  369. if in.IsNull() {
  370. if isTopLevel {
  371. in.Consumed()
  372. }
  373. in.Skip()
  374. return
  375. }
  376. in.Delim('{')
  377. for !in.IsDelim('}') {
  378. key := in.UnsafeFieldName(false)
  379. in.WantColon()
  380. if in.IsNull() {
  381. in.Skip()
  382. in.WantComma()
  383. continue
  384. }
  385. switch key {
  386. case "animations":
  387. if in.IsNull() {
  388. in.Skip()
  389. out.Animations = nil
  390. } else {
  391. in.Delim('[')
  392. if out.Animations == nil {
  393. if !in.IsDelim(']') {
  394. out.Animations = make([]string, 0, 4)
  395. } else {
  396. out.Animations = []string{}
  397. }
  398. } else {
  399. out.Animations = (out.Animations)[:0]
  400. }
  401. for !in.IsDelim(']') {
  402. var v4 string
  403. v4 = string(in.String())
  404. out.Animations = append(out.Animations, v4)
  405. in.WantComma()
  406. }
  407. in.Delim(']')
  408. }
  409. case "currentTime":
  410. out.CurrentTime = float64(in.Float64())
  411. default:
  412. in.SkipRecursive()
  413. }
  414. in.WantComma()
  415. }
  416. in.Delim('}')
  417. if isTopLevel {
  418. in.Consumed()
  419. }
  420. }
  421. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation4(out *jwriter.Writer, in SeekAnimationsParams) {
  422. out.RawByte('{')
  423. first := true
  424. _ = first
  425. {
  426. const prefix string = ",\"animations\":"
  427. out.RawString(prefix[1:])
  428. if in.Animations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  429. out.RawString("null")
  430. } else {
  431. out.RawByte('[')
  432. for v5, v6 := range in.Animations {
  433. if v5 > 0 {
  434. out.RawByte(',')
  435. }
  436. out.String(string(v6))
  437. }
  438. out.RawByte(']')
  439. }
  440. }
  441. {
  442. const prefix string = ",\"currentTime\":"
  443. out.RawString(prefix)
  444. out.Float64(float64(in.CurrentTime))
  445. }
  446. out.RawByte('}')
  447. }
  448. // MarshalJSON supports json.Marshaler interface
  449. func (v SeekAnimationsParams) MarshalJSON() ([]byte, error) {
  450. w := jwriter.Writer{}
  451. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation4(&w, v)
  452. return w.Buffer.BuildBytes(), w.Error
  453. }
  454. // MarshalEasyJSON supports easyjson.Marshaler interface
  455. func (v SeekAnimationsParams) MarshalEasyJSON(w *jwriter.Writer) {
  456. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation4(w, v)
  457. }
  458. // UnmarshalJSON supports json.Unmarshaler interface
  459. func (v *SeekAnimationsParams) UnmarshalJSON(data []byte) error {
  460. r := jlexer.Lexer{Data: data}
  461. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation4(&r, v)
  462. return r.Error()
  463. }
  464. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  465. func (v *SeekAnimationsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  466. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation4(l, v)
  467. }
  468. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation5(in *jlexer.Lexer, out *ResolveAnimationReturns) {
  469. isTopLevel := in.IsStart()
  470. if in.IsNull() {
  471. if isTopLevel {
  472. in.Consumed()
  473. }
  474. in.Skip()
  475. return
  476. }
  477. in.Delim('{')
  478. for !in.IsDelim('}') {
  479. key := in.UnsafeFieldName(false)
  480. in.WantColon()
  481. if in.IsNull() {
  482. in.Skip()
  483. in.WantComma()
  484. continue
  485. }
  486. switch key {
  487. case "remoteObject":
  488. if in.IsNull() {
  489. in.Skip()
  490. out.RemoteObject = nil
  491. } else {
  492. if out.RemoteObject == nil {
  493. out.RemoteObject = new(runtime.RemoteObject)
  494. }
  495. (*out.RemoteObject).UnmarshalEasyJSON(in)
  496. }
  497. default:
  498. in.SkipRecursive()
  499. }
  500. in.WantComma()
  501. }
  502. in.Delim('}')
  503. if isTopLevel {
  504. in.Consumed()
  505. }
  506. }
  507. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation5(out *jwriter.Writer, in ResolveAnimationReturns) {
  508. out.RawByte('{')
  509. first := true
  510. _ = first
  511. if in.RemoteObject != nil {
  512. const prefix string = ",\"remoteObject\":"
  513. first = false
  514. out.RawString(prefix[1:])
  515. (*in.RemoteObject).MarshalEasyJSON(out)
  516. }
  517. out.RawByte('}')
  518. }
  519. // MarshalJSON supports json.Marshaler interface
  520. func (v ResolveAnimationReturns) MarshalJSON() ([]byte, error) {
  521. w := jwriter.Writer{}
  522. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation5(&w, v)
  523. return w.Buffer.BuildBytes(), w.Error
  524. }
  525. // MarshalEasyJSON supports easyjson.Marshaler interface
  526. func (v ResolveAnimationReturns) MarshalEasyJSON(w *jwriter.Writer) {
  527. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation5(w, v)
  528. }
  529. // UnmarshalJSON supports json.Unmarshaler interface
  530. func (v *ResolveAnimationReturns) UnmarshalJSON(data []byte) error {
  531. r := jlexer.Lexer{Data: data}
  532. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation5(&r, v)
  533. return r.Error()
  534. }
  535. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  536. func (v *ResolveAnimationReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  537. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation5(l, v)
  538. }
  539. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation6(in *jlexer.Lexer, out *ResolveAnimationParams) {
  540. isTopLevel := in.IsStart()
  541. if in.IsNull() {
  542. if isTopLevel {
  543. in.Consumed()
  544. }
  545. in.Skip()
  546. return
  547. }
  548. in.Delim('{')
  549. for !in.IsDelim('}') {
  550. key := in.UnsafeFieldName(false)
  551. in.WantColon()
  552. if in.IsNull() {
  553. in.Skip()
  554. in.WantComma()
  555. continue
  556. }
  557. switch key {
  558. case "animationId":
  559. out.AnimationID = string(in.String())
  560. default:
  561. in.SkipRecursive()
  562. }
  563. in.WantComma()
  564. }
  565. in.Delim('}')
  566. if isTopLevel {
  567. in.Consumed()
  568. }
  569. }
  570. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation6(out *jwriter.Writer, in ResolveAnimationParams) {
  571. out.RawByte('{')
  572. first := true
  573. _ = first
  574. {
  575. const prefix string = ",\"animationId\":"
  576. out.RawString(prefix[1:])
  577. out.String(string(in.AnimationID))
  578. }
  579. out.RawByte('}')
  580. }
  581. // MarshalJSON supports json.Marshaler interface
  582. func (v ResolveAnimationParams) MarshalJSON() ([]byte, error) {
  583. w := jwriter.Writer{}
  584. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation6(&w, v)
  585. return w.Buffer.BuildBytes(), w.Error
  586. }
  587. // MarshalEasyJSON supports easyjson.Marshaler interface
  588. func (v ResolveAnimationParams) MarshalEasyJSON(w *jwriter.Writer) {
  589. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation6(w, v)
  590. }
  591. // UnmarshalJSON supports json.Unmarshaler interface
  592. func (v *ResolveAnimationParams) UnmarshalJSON(data []byte) error {
  593. r := jlexer.Lexer{Data: data}
  594. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation6(&r, v)
  595. return r.Error()
  596. }
  597. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  598. func (v *ResolveAnimationParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  599. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation6(l, v)
  600. }
  601. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation7(in *jlexer.Lexer, out *ReleaseAnimationsParams) {
  602. isTopLevel := in.IsStart()
  603. if in.IsNull() {
  604. if isTopLevel {
  605. in.Consumed()
  606. }
  607. in.Skip()
  608. return
  609. }
  610. in.Delim('{')
  611. for !in.IsDelim('}') {
  612. key := in.UnsafeFieldName(false)
  613. in.WantColon()
  614. if in.IsNull() {
  615. in.Skip()
  616. in.WantComma()
  617. continue
  618. }
  619. switch key {
  620. case "animations":
  621. if in.IsNull() {
  622. in.Skip()
  623. out.Animations = nil
  624. } else {
  625. in.Delim('[')
  626. if out.Animations == nil {
  627. if !in.IsDelim(']') {
  628. out.Animations = make([]string, 0, 4)
  629. } else {
  630. out.Animations = []string{}
  631. }
  632. } else {
  633. out.Animations = (out.Animations)[:0]
  634. }
  635. for !in.IsDelim(']') {
  636. var v7 string
  637. v7 = string(in.String())
  638. out.Animations = append(out.Animations, v7)
  639. in.WantComma()
  640. }
  641. in.Delim(']')
  642. }
  643. default:
  644. in.SkipRecursive()
  645. }
  646. in.WantComma()
  647. }
  648. in.Delim('}')
  649. if isTopLevel {
  650. in.Consumed()
  651. }
  652. }
  653. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation7(out *jwriter.Writer, in ReleaseAnimationsParams) {
  654. out.RawByte('{')
  655. first := true
  656. _ = first
  657. {
  658. const prefix string = ",\"animations\":"
  659. out.RawString(prefix[1:])
  660. if in.Animations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  661. out.RawString("null")
  662. } else {
  663. out.RawByte('[')
  664. for v8, v9 := range in.Animations {
  665. if v8 > 0 {
  666. out.RawByte(',')
  667. }
  668. out.String(string(v9))
  669. }
  670. out.RawByte(']')
  671. }
  672. }
  673. out.RawByte('}')
  674. }
  675. // MarshalJSON supports json.Marshaler interface
  676. func (v ReleaseAnimationsParams) MarshalJSON() ([]byte, error) {
  677. w := jwriter.Writer{}
  678. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation7(&w, v)
  679. return w.Buffer.BuildBytes(), w.Error
  680. }
  681. // MarshalEasyJSON supports easyjson.Marshaler interface
  682. func (v ReleaseAnimationsParams) MarshalEasyJSON(w *jwriter.Writer) {
  683. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation7(w, v)
  684. }
  685. // UnmarshalJSON supports json.Unmarshaler interface
  686. func (v *ReleaseAnimationsParams) UnmarshalJSON(data []byte) error {
  687. r := jlexer.Lexer{Data: data}
  688. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation7(&r, v)
  689. return r.Error()
  690. }
  691. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  692. func (v *ReleaseAnimationsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  693. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation7(l, v)
  694. }
  695. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation8(in *jlexer.Lexer, out *KeyframesRule) {
  696. isTopLevel := in.IsStart()
  697. if in.IsNull() {
  698. if isTopLevel {
  699. in.Consumed()
  700. }
  701. in.Skip()
  702. return
  703. }
  704. in.Delim('{')
  705. for !in.IsDelim('}') {
  706. key := in.UnsafeFieldName(false)
  707. in.WantColon()
  708. if in.IsNull() {
  709. in.Skip()
  710. in.WantComma()
  711. continue
  712. }
  713. switch key {
  714. case "name":
  715. out.Name = string(in.String())
  716. case "keyframes":
  717. if in.IsNull() {
  718. in.Skip()
  719. out.Keyframes = nil
  720. } else {
  721. in.Delim('[')
  722. if out.Keyframes == nil {
  723. if !in.IsDelim(']') {
  724. out.Keyframes = make([]*KeyframeStyle, 0, 8)
  725. } else {
  726. out.Keyframes = []*KeyframeStyle{}
  727. }
  728. } else {
  729. out.Keyframes = (out.Keyframes)[:0]
  730. }
  731. for !in.IsDelim(']') {
  732. var v10 *KeyframeStyle
  733. if in.IsNull() {
  734. in.Skip()
  735. v10 = nil
  736. } else {
  737. if v10 == nil {
  738. v10 = new(KeyframeStyle)
  739. }
  740. (*v10).UnmarshalEasyJSON(in)
  741. }
  742. out.Keyframes = append(out.Keyframes, v10)
  743. in.WantComma()
  744. }
  745. in.Delim(']')
  746. }
  747. default:
  748. in.SkipRecursive()
  749. }
  750. in.WantComma()
  751. }
  752. in.Delim('}')
  753. if isTopLevel {
  754. in.Consumed()
  755. }
  756. }
  757. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation8(out *jwriter.Writer, in KeyframesRule) {
  758. out.RawByte('{')
  759. first := true
  760. _ = first
  761. if in.Name != "" {
  762. const prefix string = ",\"name\":"
  763. first = false
  764. out.RawString(prefix[1:])
  765. out.String(string(in.Name))
  766. }
  767. {
  768. const prefix string = ",\"keyframes\":"
  769. if first {
  770. first = false
  771. out.RawString(prefix[1:])
  772. } else {
  773. out.RawString(prefix)
  774. }
  775. if in.Keyframes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  776. out.RawString("null")
  777. } else {
  778. out.RawByte('[')
  779. for v11, v12 := range in.Keyframes {
  780. if v11 > 0 {
  781. out.RawByte(',')
  782. }
  783. if v12 == nil {
  784. out.RawString("null")
  785. } else {
  786. (*v12).MarshalEasyJSON(out)
  787. }
  788. }
  789. out.RawByte(']')
  790. }
  791. }
  792. out.RawByte('}')
  793. }
  794. // MarshalJSON supports json.Marshaler interface
  795. func (v KeyframesRule) MarshalJSON() ([]byte, error) {
  796. w := jwriter.Writer{}
  797. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation8(&w, v)
  798. return w.Buffer.BuildBytes(), w.Error
  799. }
  800. // MarshalEasyJSON supports easyjson.Marshaler interface
  801. func (v KeyframesRule) MarshalEasyJSON(w *jwriter.Writer) {
  802. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation8(w, v)
  803. }
  804. // UnmarshalJSON supports json.Unmarshaler interface
  805. func (v *KeyframesRule) UnmarshalJSON(data []byte) error {
  806. r := jlexer.Lexer{Data: data}
  807. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation8(&r, v)
  808. return r.Error()
  809. }
  810. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  811. func (v *KeyframesRule) UnmarshalEasyJSON(l *jlexer.Lexer) {
  812. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation8(l, v)
  813. }
  814. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation9(in *jlexer.Lexer, out *KeyframeStyle) {
  815. isTopLevel := in.IsStart()
  816. if in.IsNull() {
  817. if isTopLevel {
  818. in.Consumed()
  819. }
  820. in.Skip()
  821. return
  822. }
  823. in.Delim('{')
  824. for !in.IsDelim('}') {
  825. key := in.UnsafeFieldName(false)
  826. in.WantColon()
  827. if in.IsNull() {
  828. in.Skip()
  829. in.WantComma()
  830. continue
  831. }
  832. switch key {
  833. case "offset":
  834. out.Offset = string(in.String())
  835. case "easing":
  836. out.Easing = string(in.String())
  837. default:
  838. in.SkipRecursive()
  839. }
  840. in.WantComma()
  841. }
  842. in.Delim('}')
  843. if isTopLevel {
  844. in.Consumed()
  845. }
  846. }
  847. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation9(out *jwriter.Writer, in KeyframeStyle) {
  848. out.RawByte('{')
  849. first := true
  850. _ = first
  851. {
  852. const prefix string = ",\"offset\":"
  853. out.RawString(prefix[1:])
  854. out.String(string(in.Offset))
  855. }
  856. {
  857. const prefix string = ",\"easing\":"
  858. out.RawString(prefix)
  859. out.String(string(in.Easing))
  860. }
  861. out.RawByte('}')
  862. }
  863. // MarshalJSON supports json.Marshaler interface
  864. func (v KeyframeStyle) MarshalJSON() ([]byte, error) {
  865. w := jwriter.Writer{}
  866. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation9(&w, v)
  867. return w.Buffer.BuildBytes(), w.Error
  868. }
  869. // MarshalEasyJSON supports easyjson.Marshaler interface
  870. func (v KeyframeStyle) MarshalEasyJSON(w *jwriter.Writer) {
  871. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation9(w, v)
  872. }
  873. // UnmarshalJSON supports json.Unmarshaler interface
  874. func (v *KeyframeStyle) UnmarshalJSON(data []byte) error {
  875. r := jlexer.Lexer{Data: data}
  876. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation9(&r, v)
  877. return r.Error()
  878. }
  879. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  880. func (v *KeyframeStyle) UnmarshalEasyJSON(l *jlexer.Lexer) {
  881. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation9(l, v)
  882. }
  883. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation10(in *jlexer.Lexer, out *GetPlaybackRateReturns) {
  884. isTopLevel := in.IsStart()
  885. if in.IsNull() {
  886. if isTopLevel {
  887. in.Consumed()
  888. }
  889. in.Skip()
  890. return
  891. }
  892. in.Delim('{')
  893. for !in.IsDelim('}') {
  894. key := in.UnsafeFieldName(false)
  895. in.WantColon()
  896. if in.IsNull() {
  897. in.Skip()
  898. in.WantComma()
  899. continue
  900. }
  901. switch key {
  902. case "playbackRate":
  903. out.PlaybackRate = float64(in.Float64())
  904. default:
  905. in.SkipRecursive()
  906. }
  907. in.WantComma()
  908. }
  909. in.Delim('}')
  910. if isTopLevel {
  911. in.Consumed()
  912. }
  913. }
  914. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation10(out *jwriter.Writer, in GetPlaybackRateReturns) {
  915. out.RawByte('{')
  916. first := true
  917. _ = first
  918. if in.PlaybackRate != 0 {
  919. const prefix string = ",\"playbackRate\":"
  920. first = false
  921. out.RawString(prefix[1:])
  922. out.Float64(float64(in.PlaybackRate))
  923. }
  924. out.RawByte('}')
  925. }
  926. // MarshalJSON supports json.Marshaler interface
  927. func (v GetPlaybackRateReturns) MarshalJSON() ([]byte, error) {
  928. w := jwriter.Writer{}
  929. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation10(&w, v)
  930. return w.Buffer.BuildBytes(), w.Error
  931. }
  932. // MarshalEasyJSON supports easyjson.Marshaler interface
  933. func (v GetPlaybackRateReturns) MarshalEasyJSON(w *jwriter.Writer) {
  934. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation10(w, v)
  935. }
  936. // UnmarshalJSON supports json.Unmarshaler interface
  937. func (v *GetPlaybackRateReturns) UnmarshalJSON(data []byte) error {
  938. r := jlexer.Lexer{Data: data}
  939. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation10(&r, v)
  940. return r.Error()
  941. }
  942. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  943. func (v *GetPlaybackRateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  944. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation10(l, v)
  945. }
  946. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation11(in *jlexer.Lexer, out *GetPlaybackRateParams) {
  947. isTopLevel := in.IsStart()
  948. if in.IsNull() {
  949. if isTopLevel {
  950. in.Consumed()
  951. }
  952. in.Skip()
  953. return
  954. }
  955. in.Delim('{')
  956. for !in.IsDelim('}') {
  957. key := in.UnsafeFieldName(false)
  958. in.WantColon()
  959. if in.IsNull() {
  960. in.Skip()
  961. in.WantComma()
  962. continue
  963. }
  964. switch key {
  965. default:
  966. in.SkipRecursive()
  967. }
  968. in.WantComma()
  969. }
  970. in.Delim('}')
  971. if isTopLevel {
  972. in.Consumed()
  973. }
  974. }
  975. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation11(out *jwriter.Writer, in GetPlaybackRateParams) {
  976. out.RawByte('{')
  977. first := true
  978. _ = first
  979. out.RawByte('}')
  980. }
  981. // MarshalJSON supports json.Marshaler interface
  982. func (v GetPlaybackRateParams) MarshalJSON() ([]byte, error) {
  983. w := jwriter.Writer{}
  984. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation11(&w, v)
  985. return w.Buffer.BuildBytes(), w.Error
  986. }
  987. // MarshalEasyJSON supports easyjson.Marshaler interface
  988. func (v GetPlaybackRateParams) MarshalEasyJSON(w *jwriter.Writer) {
  989. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation11(w, v)
  990. }
  991. // UnmarshalJSON supports json.Unmarshaler interface
  992. func (v *GetPlaybackRateParams) UnmarshalJSON(data []byte) error {
  993. r := jlexer.Lexer{Data: data}
  994. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation11(&r, v)
  995. return r.Error()
  996. }
  997. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  998. func (v *GetPlaybackRateParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  999. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation11(l, v)
  1000. }
  1001. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation12(in *jlexer.Lexer, out *GetCurrentTimeReturns) {
  1002. isTopLevel := in.IsStart()
  1003. if in.IsNull() {
  1004. if isTopLevel {
  1005. in.Consumed()
  1006. }
  1007. in.Skip()
  1008. return
  1009. }
  1010. in.Delim('{')
  1011. for !in.IsDelim('}') {
  1012. key := in.UnsafeFieldName(false)
  1013. in.WantColon()
  1014. if in.IsNull() {
  1015. in.Skip()
  1016. in.WantComma()
  1017. continue
  1018. }
  1019. switch key {
  1020. case "currentTime":
  1021. out.CurrentTime = float64(in.Float64())
  1022. default:
  1023. in.SkipRecursive()
  1024. }
  1025. in.WantComma()
  1026. }
  1027. in.Delim('}')
  1028. if isTopLevel {
  1029. in.Consumed()
  1030. }
  1031. }
  1032. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation12(out *jwriter.Writer, in GetCurrentTimeReturns) {
  1033. out.RawByte('{')
  1034. first := true
  1035. _ = first
  1036. if in.CurrentTime != 0 {
  1037. const prefix string = ",\"currentTime\":"
  1038. first = false
  1039. out.RawString(prefix[1:])
  1040. out.Float64(float64(in.CurrentTime))
  1041. }
  1042. out.RawByte('}')
  1043. }
  1044. // MarshalJSON supports json.Marshaler interface
  1045. func (v GetCurrentTimeReturns) MarshalJSON() ([]byte, error) {
  1046. w := jwriter.Writer{}
  1047. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation12(&w, v)
  1048. return w.Buffer.BuildBytes(), w.Error
  1049. }
  1050. // MarshalEasyJSON supports easyjson.Marshaler interface
  1051. func (v GetCurrentTimeReturns) MarshalEasyJSON(w *jwriter.Writer) {
  1052. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation12(w, v)
  1053. }
  1054. // UnmarshalJSON supports json.Unmarshaler interface
  1055. func (v *GetCurrentTimeReturns) UnmarshalJSON(data []byte) error {
  1056. r := jlexer.Lexer{Data: data}
  1057. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation12(&r, v)
  1058. return r.Error()
  1059. }
  1060. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1061. func (v *GetCurrentTimeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1062. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation12(l, v)
  1063. }
  1064. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation13(in *jlexer.Lexer, out *GetCurrentTimeParams) {
  1065. isTopLevel := in.IsStart()
  1066. if in.IsNull() {
  1067. if isTopLevel {
  1068. in.Consumed()
  1069. }
  1070. in.Skip()
  1071. return
  1072. }
  1073. in.Delim('{')
  1074. for !in.IsDelim('}') {
  1075. key := in.UnsafeFieldName(false)
  1076. in.WantColon()
  1077. if in.IsNull() {
  1078. in.Skip()
  1079. in.WantComma()
  1080. continue
  1081. }
  1082. switch key {
  1083. case "id":
  1084. out.ID = string(in.String())
  1085. default:
  1086. in.SkipRecursive()
  1087. }
  1088. in.WantComma()
  1089. }
  1090. in.Delim('}')
  1091. if isTopLevel {
  1092. in.Consumed()
  1093. }
  1094. }
  1095. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation13(out *jwriter.Writer, in GetCurrentTimeParams) {
  1096. out.RawByte('{')
  1097. first := true
  1098. _ = first
  1099. {
  1100. const prefix string = ",\"id\":"
  1101. out.RawString(prefix[1:])
  1102. out.String(string(in.ID))
  1103. }
  1104. out.RawByte('}')
  1105. }
  1106. // MarshalJSON supports json.Marshaler interface
  1107. func (v GetCurrentTimeParams) MarshalJSON() ([]byte, error) {
  1108. w := jwriter.Writer{}
  1109. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation13(&w, v)
  1110. return w.Buffer.BuildBytes(), w.Error
  1111. }
  1112. // MarshalEasyJSON supports easyjson.Marshaler interface
  1113. func (v GetCurrentTimeParams) MarshalEasyJSON(w *jwriter.Writer) {
  1114. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation13(w, v)
  1115. }
  1116. // UnmarshalJSON supports json.Unmarshaler interface
  1117. func (v *GetCurrentTimeParams) UnmarshalJSON(data []byte) error {
  1118. r := jlexer.Lexer{Data: data}
  1119. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation13(&r, v)
  1120. return r.Error()
  1121. }
  1122. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1123. func (v *GetCurrentTimeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1124. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation13(l, v)
  1125. }
  1126. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation14(in *jlexer.Lexer, out *EventAnimationUpdated) {
  1127. isTopLevel := in.IsStart()
  1128. if in.IsNull() {
  1129. if isTopLevel {
  1130. in.Consumed()
  1131. }
  1132. in.Skip()
  1133. return
  1134. }
  1135. in.Delim('{')
  1136. for !in.IsDelim('}') {
  1137. key := in.UnsafeFieldName(false)
  1138. in.WantColon()
  1139. if in.IsNull() {
  1140. in.Skip()
  1141. in.WantComma()
  1142. continue
  1143. }
  1144. switch key {
  1145. case "animation":
  1146. if in.IsNull() {
  1147. in.Skip()
  1148. out.Animation = nil
  1149. } else {
  1150. if out.Animation == nil {
  1151. out.Animation = new(Animation)
  1152. }
  1153. (*out.Animation).UnmarshalEasyJSON(in)
  1154. }
  1155. default:
  1156. in.SkipRecursive()
  1157. }
  1158. in.WantComma()
  1159. }
  1160. in.Delim('}')
  1161. if isTopLevel {
  1162. in.Consumed()
  1163. }
  1164. }
  1165. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation14(out *jwriter.Writer, in EventAnimationUpdated) {
  1166. out.RawByte('{')
  1167. first := true
  1168. _ = first
  1169. {
  1170. const prefix string = ",\"animation\":"
  1171. out.RawString(prefix[1:])
  1172. if in.Animation == nil {
  1173. out.RawString("null")
  1174. } else {
  1175. (*in.Animation).MarshalEasyJSON(out)
  1176. }
  1177. }
  1178. out.RawByte('}')
  1179. }
  1180. // MarshalJSON supports json.Marshaler interface
  1181. func (v EventAnimationUpdated) MarshalJSON() ([]byte, error) {
  1182. w := jwriter.Writer{}
  1183. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation14(&w, v)
  1184. return w.Buffer.BuildBytes(), w.Error
  1185. }
  1186. // MarshalEasyJSON supports easyjson.Marshaler interface
  1187. func (v EventAnimationUpdated) MarshalEasyJSON(w *jwriter.Writer) {
  1188. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation14(w, v)
  1189. }
  1190. // UnmarshalJSON supports json.Unmarshaler interface
  1191. func (v *EventAnimationUpdated) UnmarshalJSON(data []byte) error {
  1192. r := jlexer.Lexer{Data: data}
  1193. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation14(&r, v)
  1194. return r.Error()
  1195. }
  1196. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1197. func (v *EventAnimationUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1198. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation14(l, v)
  1199. }
  1200. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation15(in *jlexer.Lexer, out *EventAnimationStarted) {
  1201. isTopLevel := in.IsStart()
  1202. if in.IsNull() {
  1203. if isTopLevel {
  1204. in.Consumed()
  1205. }
  1206. in.Skip()
  1207. return
  1208. }
  1209. in.Delim('{')
  1210. for !in.IsDelim('}') {
  1211. key := in.UnsafeFieldName(false)
  1212. in.WantColon()
  1213. if in.IsNull() {
  1214. in.Skip()
  1215. in.WantComma()
  1216. continue
  1217. }
  1218. switch key {
  1219. case "animation":
  1220. if in.IsNull() {
  1221. in.Skip()
  1222. out.Animation = nil
  1223. } else {
  1224. if out.Animation == nil {
  1225. out.Animation = new(Animation)
  1226. }
  1227. (*out.Animation).UnmarshalEasyJSON(in)
  1228. }
  1229. default:
  1230. in.SkipRecursive()
  1231. }
  1232. in.WantComma()
  1233. }
  1234. in.Delim('}')
  1235. if isTopLevel {
  1236. in.Consumed()
  1237. }
  1238. }
  1239. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation15(out *jwriter.Writer, in EventAnimationStarted) {
  1240. out.RawByte('{')
  1241. first := true
  1242. _ = first
  1243. {
  1244. const prefix string = ",\"animation\":"
  1245. out.RawString(prefix[1:])
  1246. if in.Animation == nil {
  1247. out.RawString("null")
  1248. } else {
  1249. (*in.Animation).MarshalEasyJSON(out)
  1250. }
  1251. }
  1252. out.RawByte('}')
  1253. }
  1254. // MarshalJSON supports json.Marshaler interface
  1255. func (v EventAnimationStarted) MarshalJSON() ([]byte, error) {
  1256. w := jwriter.Writer{}
  1257. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation15(&w, v)
  1258. return w.Buffer.BuildBytes(), w.Error
  1259. }
  1260. // MarshalEasyJSON supports easyjson.Marshaler interface
  1261. func (v EventAnimationStarted) MarshalEasyJSON(w *jwriter.Writer) {
  1262. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation15(w, v)
  1263. }
  1264. // UnmarshalJSON supports json.Unmarshaler interface
  1265. func (v *EventAnimationStarted) UnmarshalJSON(data []byte) error {
  1266. r := jlexer.Lexer{Data: data}
  1267. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation15(&r, v)
  1268. return r.Error()
  1269. }
  1270. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1271. func (v *EventAnimationStarted) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1272. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation15(l, v)
  1273. }
  1274. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation16(in *jlexer.Lexer, out *EventAnimationCreated) {
  1275. isTopLevel := in.IsStart()
  1276. if in.IsNull() {
  1277. if isTopLevel {
  1278. in.Consumed()
  1279. }
  1280. in.Skip()
  1281. return
  1282. }
  1283. in.Delim('{')
  1284. for !in.IsDelim('}') {
  1285. key := in.UnsafeFieldName(false)
  1286. in.WantColon()
  1287. if in.IsNull() {
  1288. in.Skip()
  1289. in.WantComma()
  1290. continue
  1291. }
  1292. switch key {
  1293. case "id":
  1294. out.ID = string(in.String())
  1295. default:
  1296. in.SkipRecursive()
  1297. }
  1298. in.WantComma()
  1299. }
  1300. in.Delim('}')
  1301. if isTopLevel {
  1302. in.Consumed()
  1303. }
  1304. }
  1305. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation16(out *jwriter.Writer, in EventAnimationCreated) {
  1306. out.RawByte('{')
  1307. first := true
  1308. _ = first
  1309. {
  1310. const prefix string = ",\"id\":"
  1311. out.RawString(prefix[1:])
  1312. out.String(string(in.ID))
  1313. }
  1314. out.RawByte('}')
  1315. }
  1316. // MarshalJSON supports json.Marshaler interface
  1317. func (v EventAnimationCreated) MarshalJSON() ([]byte, error) {
  1318. w := jwriter.Writer{}
  1319. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation16(&w, v)
  1320. return w.Buffer.BuildBytes(), w.Error
  1321. }
  1322. // MarshalEasyJSON supports easyjson.Marshaler interface
  1323. func (v EventAnimationCreated) MarshalEasyJSON(w *jwriter.Writer) {
  1324. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation16(w, v)
  1325. }
  1326. // UnmarshalJSON supports json.Unmarshaler interface
  1327. func (v *EventAnimationCreated) UnmarshalJSON(data []byte) error {
  1328. r := jlexer.Lexer{Data: data}
  1329. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation16(&r, v)
  1330. return r.Error()
  1331. }
  1332. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1333. func (v *EventAnimationCreated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1334. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation16(l, v)
  1335. }
  1336. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation17(in *jlexer.Lexer, out *EventAnimationCanceled) {
  1337. isTopLevel := in.IsStart()
  1338. if in.IsNull() {
  1339. if isTopLevel {
  1340. in.Consumed()
  1341. }
  1342. in.Skip()
  1343. return
  1344. }
  1345. in.Delim('{')
  1346. for !in.IsDelim('}') {
  1347. key := in.UnsafeFieldName(false)
  1348. in.WantColon()
  1349. if in.IsNull() {
  1350. in.Skip()
  1351. in.WantComma()
  1352. continue
  1353. }
  1354. switch key {
  1355. case "id":
  1356. out.ID = string(in.String())
  1357. default:
  1358. in.SkipRecursive()
  1359. }
  1360. in.WantComma()
  1361. }
  1362. in.Delim('}')
  1363. if isTopLevel {
  1364. in.Consumed()
  1365. }
  1366. }
  1367. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation17(out *jwriter.Writer, in EventAnimationCanceled) {
  1368. out.RawByte('{')
  1369. first := true
  1370. _ = first
  1371. {
  1372. const prefix string = ",\"id\":"
  1373. out.RawString(prefix[1:])
  1374. out.String(string(in.ID))
  1375. }
  1376. out.RawByte('}')
  1377. }
  1378. // MarshalJSON supports json.Marshaler interface
  1379. func (v EventAnimationCanceled) MarshalJSON() ([]byte, error) {
  1380. w := jwriter.Writer{}
  1381. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation17(&w, v)
  1382. return w.Buffer.BuildBytes(), w.Error
  1383. }
  1384. // MarshalEasyJSON supports easyjson.Marshaler interface
  1385. func (v EventAnimationCanceled) MarshalEasyJSON(w *jwriter.Writer) {
  1386. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation17(w, v)
  1387. }
  1388. // UnmarshalJSON supports json.Unmarshaler interface
  1389. func (v *EventAnimationCanceled) UnmarshalJSON(data []byte) error {
  1390. r := jlexer.Lexer{Data: data}
  1391. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation17(&r, v)
  1392. return r.Error()
  1393. }
  1394. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1395. func (v *EventAnimationCanceled) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1396. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation17(l, v)
  1397. }
  1398. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation18(in *jlexer.Lexer, out *EnableParams) {
  1399. isTopLevel := in.IsStart()
  1400. if in.IsNull() {
  1401. if isTopLevel {
  1402. in.Consumed()
  1403. }
  1404. in.Skip()
  1405. return
  1406. }
  1407. in.Delim('{')
  1408. for !in.IsDelim('}') {
  1409. key := in.UnsafeFieldName(false)
  1410. in.WantColon()
  1411. if in.IsNull() {
  1412. in.Skip()
  1413. in.WantComma()
  1414. continue
  1415. }
  1416. switch key {
  1417. default:
  1418. in.SkipRecursive()
  1419. }
  1420. in.WantComma()
  1421. }
  1422. in.Delim('}')
  1423. if isTopLevel {
  1424. in.Consumed()
  1425. }
  1426. }
  1427. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation18(out *jwriter.Writer, in EnableParams) {
  1428. out.RawByte('{')
  1429. first := true
  1430. _ = first
  1431. out.RawByte('}')
  1432. }
  1433. // MarshalJSON supports json.Marshaler interface
  1434. func (v EnableParams) MarshalJSON() ([]byte, error) {
  1435. w := jwriter.Writer{}
  1436. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation18(&w, v)
  1437. return w.Buffer.BuildBytes(), w.Error
  1438. }
  1439. // MarshalEasyJSON supports easyjson.Marshaler interface
  1440. func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
  1441. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation18(w, v)
  1442. }
  1443. // UnmarshalJSON supports json.Unmarshaler interface
  1444. func (v *EnableParams) UnmarshalJSON(data []byte) error {
  1445. r := jlexer.Lexer{Data: data}
  1446. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation18(&r, v)
  1447. return r.Error()
  1448. }
  1449. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1450. func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1451. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation18(l, v)
  1452. }
  1453. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation19(in *jlexer.Lexer, out *Effect) {
  1454. isTopLevel := in.IsStart()
  1455. if in.IsNull() {
  1456. if isTopLevel {
  1457. in.Consumed()
  1458. }
  1459. in.Skip()
  1460. return
  1461. }
  1462. in.Delim('{')
  1463. for !in.IsDelim('}') {
  1464. key := in.UnsafeFieldName(false)
  1465. in.WantColon()
  1466. if in.IsNull() {
  1467. in.Skip()
  1468. in.WantComma()
  1469. continue
  1470. }
  1471. switch key {
  1472. case "delay":
  1473. out.Delay = float64(in.Float64())
  1474. case "endDelay":
  1475. out.EndDelay = float64(in.Float64())
  1476. case "iterationStart":
  1477. out.IterationStart = float64(in.Float64())
  1478. case "iterations":
  1479. out.Iterations = float64(in.Float64())
  1480. case "duration":
  1481. out.Duration = float64(in.Float64())
  1482. case "direction":
  1483. out.Direction = string(in.String())
  1484. case "fill":
  1485. out.Fill = string(in.String())
  1486. case "backendNodeId":
  1487. (out.BackendNodeID).UnmarshalEasyJSON(in)
  1488. case "keyframesRule":
  1489. if in.IsNull() {
  1490. in.Skip()
  1491. out.KeyframesRule = nil
  1492. } else {
  1493. if out.KeyframesRule == nil {
  1494. out.KeyframesRule = new(KeyframesRule)
  1495. }
  1496. (*out.KeyframesRule).UnmarshalEasyJSON(in)
  1497. }
  1498. case "easing":
  1499. out.Easing = string(in.String())
  1500. default:
  1501. in.SkipRecursive()
  1502. }
  1503. in.WantComma()
  1504. }
  1505. in.Delim('}')
  1506. if isTopLevel {
  1507. in.Consumed()
  1508. }
  1509. }
  1510. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation19(out *jwriter.Writer, in Effect) {
  1511. out.RawByte('{')
  1512. first := true
  1513. _ = first
  1514. {
  1515. const prefix string = ",\"delay\":"
  1516. out.RawString(prefix[1:])
  1517. out.Float64(float64(in.Delay))
  1518. }
  1519. {
  1520. const prefix string = ",\"endDelay\":"
  1521. out.RawString(prefix)
  1522. out.Float64(float64(in.EndDelay))
  1523. }
  1524. {
  1525. const prefix string = ",\"iterationStart\":"
  1526. out.RawString(prefix)
  1527. out.Float64(float64(in.IterationStart))
  1528. }
  1529. {
  1530. const prefix string = ",\"iterations\":"
  1531. out.RawString(prefix)
  1532. out.Float64(float64(in.Iterations))
  1533. }
  1534. {
  1535. const prefix string = ",\"duration\":"
  1536. out.RawString(prefix)
  1537. out.Float64(float64(in.Duration))
  1538. }
  1539. {
  1540. const prefix string = ",\"direction\":"
  1541. out.RawString(prefix)
  1542. out.String(string(in.Direction))
  1543. }
  1544. {
  1545. const prefix string = ",\"fill\":"
  1546. out.RawString(prefix)
  1547. out.String(string(in.Fill))
  1548. }
  1549. if in.BackendNodeID != 0 {
  1550. const prefix string = ",\"backendNodeId\":"
  1551. out.RawString(prefix)
  1552. out.Int64(int64(in.BackendNodeID))
  1553. }
  1554. if in.KeyframesRule != nil {
  1555. const prefix string = ",\"keyframesRule\":"
  1556. out.RawString(prefix)
  1557. (*in.KeyframesRule).MarshalEasyJSON(out)
  1558. }
  1559. {
  1560. const prefix string = ",\"easing\":"
  1561. out.RawString(prefix)
  1562. out.String(string(in.Easing))
  1563. }
  1564. out.RawByte('}')
  1565. }
  1566. // MarshalJSON supports json.Marshaler interface
  1567. func (v Effect) MarshalJSON() ([]byte, error) {
  1568. w := jwriter.Writer{}
  1569. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation19(&w, v)
  1570. return w.Buffer.BuildBytes(), w.Error
  1571. }
  1572. // MarshalEasyJSON supports easyjson.Marshaler interface
  1573. func (v Effect) MarshalEasyJSON(w *jwriter.Writer) {
  1574. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation19(w, v)
  1575. }
  1576. // UnmarshalJSON supports json.Unmarshaler interface
  1577. func (v *Effect) UnmarshalJSON(data []byte) error {
  1578. r := jlexer.Lexer{Data: data}
  1579. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation19(&r, v)
  1580. return r.Error()
  1581. }
  1582. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1583. func (v *Effect) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1584. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation19(l, v)
  1585. }
  1586. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation20(in *jlexer.Lexer, out *DisableParams) {
  1587. isTopLevel := in.IsStart()
  1588. if in.IsNull() {
  1589. if isTopLevel {
  1590. in.Consumed()
  1591. }
  1592. in.Skip()
  1593. return
  1594. }
  1595. in.Delim('{')
  1596. for !in.IsDelim('}') {
  1597. key := in.UnsafeFieldName(false)
  1598. in.WantColon()
  1599. if in.IsNull() {
  1600. in.Skip()
  1601. in.WantComma()
  1602. continue
  1603. }
  1604. switch key {
  1605. default:
  1606. in.SkipRecursive()
  1607. }
  1608. in.WantComma()
  1609. }
  1610. in.Delim('}')
  1611. if isTopLevel {
  1612. in.Consumed()
  1613. }
  1614. }
  1615. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation20(out *jwriter.Writer, in DisableParams) {
  1616. out.RawByte('{')
  1617. first := true
  1618. _ = first
  1619. out.RawByte('}')
  1620. }
  1621. // MarshalJSON supports json.Marshaler interface
  1622. func (v DisableParams) MarshalJSON() ([]byte, error) {
  1623. w := jwriter.Writer{}
  1624. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation20(&w, v)
  1625. return w.Buffer.BuildBytes(), w.Error
  1626. }
  1627. // MarshalEasyJSON supports easyjson.Marshaler interface
  1628. func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
  1629. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation20(w, v)
  1630. }
  1631. // UnmarshalJSON supports json.Unmarshaler interface
  1632. func (v *DisableParams) UnmarshalJSON(data []byte) error {
  1633. r := jlexer.Lexer{Data: data}
  1634. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation20(&r, v)
  1635. return r.Error()
  1636. }
  1637. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1638. func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1639. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation20(l, v)
  1640. }
  1641. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation21(in *jlexer.Lexer, out *Animation) {
  1642. isTopLevel := in.IsStart()
  1643. if in.IsNull() {
  1644. if isTopLevel {
  1645. in.Consumed()
  1646. }
  1647. in.Skip()
  1648. return
  1649. }
  1650. in.Delim('{')
  1651. for !in.IsDelim('}') {
  1652. key := in.UnsafeFieldName(false)
  1653. in.WantColon()
  1654. if in.IsNull() {
  1655. in.Skip()
  1656. in.WantComma()
  1657. continue
  1658. }
  1659. switch key {
  1660. case "id":
  1661. out.ID = string(in.String())
  1662. case "name":
  1663. out.Name = string(in.String())
  1664. case "pausedState":
  1665. out.PausedState = bool(in.Bool())
  1666. case "playState":
  1667. out.PlayState = string(in.String())
  1668. case "playbackRate":
  1669. out.PlaybackRate = float64(in.Float64())
  1670. case "startTime":
  1671. out.StartTime = float64(in.Float64())
  1672. case "currentTime":
  1673. out.CurrentTime = float64(in.Float64())
  1674. case "type":
  1675. (out.Type).UnmarshalEasyJSON(in)
  1676. case "source":
  1677. if in.IsNull() {
  1678. in.Skip()
  1679. out.Source = nil
  1680. } else {
  1681. if out.Source == nil {
  1682. out.Source = new(Effect)
  1683. }
  1684. (*out.Source).UnmarshalEasyJSON(in)
  1685. }
  1686. case "cssId":
  1687. out.CSSID = string(in.String())
  1688. case "viewOrScrollTimeline":
  1689. if in.IsNull() {
  1690. in.Skip()
  1691. out.ViewOrScrollTimeline = nil
  1692. } else {
  1693. if out.ViewOrScrollTimeline == nil {
  1694. out.ViewOrScrollTimeline = new(ViewOrScrollTimeline)
  1695. }
  1696. (*out.ViewOrScrollTimeline).UnmarshalEasyJSON(in)
  1697. }
  1698. default:
  1699. in.SkipRecursive()
  1700. }
  1701. in.WantComma()
  1702. }
  1703. in.Delim('}')
  1704. if isTopLevel {
  1705. in.Consumed()
  1706. }
  1707. }
  1708. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation21(out *jwriter.Writer, in Animation) {
  1709. out.RawByte('{')
  1710. first := true
  1711. _ = first
  1712. {
  1713. const prefix string = ",\"id\":"
  1714. out.RawString(prefix[1:])
  1715. out.String(string(in.ID))
  1716. }
  1717. {
  1718. const prefix string = ",\"name\":"
  1719. out.RawString(prefix)
  1720. out.String(string(in.Name))
  1721. }
  1722. {
  1723. const prefix string = ",\"pausedState\":"
  1724. out.RawString(prefix)
  1725. out.Bool(bool(in.PausedState))
  1726. }
  1727. {
  1728. const prefix string = ",\"playState\":"
  1729. out.RawString(prefix)
  1730. out.String(string(in.PlayState))
  1731. }
  1732. {
  1733. const prefix string = ",\"playbackRate\":"
  1734. out.RawString(prefix)
  1735. out.Float64(float64(in.PlaybackRate))
  1736. }
  1737. {
  1738. const prefix string = ",\"startTime\":"
  1739. out.RawString(prefix)
  1740. out.Float64(float64(in.StartTime))
  1741. }
  1742. {
  1743. const prefix string = ",\"currentTime\":"
  1744. out.RawString(prefix)
  1745. out.Float64(float64(in.CurrentTime))
  1746. }
  1747. {
  1748. const prefix string = ",\"type\":"
  1749. out.RawString(prefix)
  1750. (in.Type).MarshalEasyJSON(out)
  1751. }
  1752. if in.Source != nil {
  1753. const prefix string = ",\"source\":"
  1754. out.RawString(prefix)
  1755. (*in.Source).MarshalEasyJSON(out)
  1756. }
  1757. if in.CSSID != "" {
  1758. const prefix string = ",\"cssId\":"
  1759. out.RawString(prefix)
  1760. out.String(string(in.CSSID))
  1761. }
  1762. if in.ViewOrScrollTimeline != nil {
  1763. const prefix string = ",\"viewOrScrollTimeline\":"
  1764. out.RawString(prefix)
  1765. (*in.ViewOrScrollTimeline).MarshalEasyJSON(out)
  1766. }
  1767. out.RawByte('}')
  1768. }
  1769. // MarshalJSON supports json.Marshaler interface
  1770. func (v Animation) MarshalJSON() ([]byte, error) {
  1771. w := jwriter.Writer{}
  1772. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation21(&w, v)
  1773. return w.Buffer.BuildBytes(), w.Error
  1774. }
  1775. // MarshalEasyJSON supports easyjson.Marshaler interface
  1776. func (v Animation) MarshalEasyJSON(w *jwriter.Writer) {
  1777. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation21(w, v)
  1778. }
  1779. // UnmarshalJSON supports json.Unmarshaler interface
  1780. func (v *Animation) UnmarshalJSON(data []byte) error {
  1781. r := jlexer.Lexer{Data: data}
  1782. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation21(&r, v)
  1783. return r.Error()
  1784. }
  1785. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1786. func (v *Animation) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1787. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation21(l, v)
  1788. }