package deviceorientation
import (
json "encoding/json"
easyjson "github.com/mailru/easyjson"
jlexer "github.com/mailru/easyjson/jlexer"
jwriter "github.com/mailru/easyjson/jwriter"
)
var (
_ *json .RawMessage
_ *jlexer .Lexer
_ *jwriter .Writer
_ easyjson .Marshaler
)
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDeviceorientation(in *jlexer .Lexer , out *SetDeviceOrientationOverrideParams ) {
isTopLevel := in .IsStart ()
if in .IsNull () {
if isTopLevel {
in .Consumed ()
}
in .Skip ()
return
}
in .Delim ('{' )
for !in .IsDelim ('}' ) {
key := in .UnsafeFieldName (false )
in .WantColon ()
if in .IsNull () {
in .Skip ()
in .WantComma ()
continue
}
switch key {
case "alpha" :
out .Alpha = float64 (in .Float64 ())
case "beta" :
out .Beta = float64 (in .Float64 ())
case "gamma" :
out .Gamma = float64 (in .Float64 ())
default :
in .SkipRecursive ()
}
in .WantComma ()
}
in .Delim ('}' )
if isTopLevel {
in .Consumed ()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDeviceorientation(out *jwriter .Writer , in SetDeviceOrientationOverrideParams ) {
out .RawByte ('{' )
first := true
_ = first
{
const prefix string = ",\"alpha\":"
out .RawString (prefix [1 :])
out .Float64 (float64 (in .Alpha ))
}
{
const prefix string = ",\"beta\":"
out .RawString (prefix )
out .Float64 (float64 (in .Beta ))
}
{
const prefix string = ",\"gamma\":"
out .RawString (prefix )
out .Float64 (float64 (in .Gamma ))
}
out .RawByte ('}' )
}
func (v SetDeviceOrientationOverrideParams ) MarshalJSON () ([]byte , error ) {
w := jwriter .Writer {}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoDeviceorientation (&w , v )
return w .Buffer .BuildBytes (), w .Error
}
func (v SetDeviceOrientationOverrideParams ) MarshalEasyJSON (w *jwriter .Writer ) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoDeviceorientation (w , v )
}
func (v *SetDeviceOrientationOverrideParams ) UnmarshalJSON (data []byte ) error {
r := jlexer .Lexer {Data : data }
easyjsonC5a4559bDecodeGithubComChromedpCdprotoDeviceorientation (&r , v )
return r .Error ()
}
func (v *SetDeviceOrientationOverrideParams ) UnmarshalEasyJSON (l *jlexer .Lexer ) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoDeviceorientation (l , v )
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDeviceorientation1(in *jlexer .Lexer , out *ClearDeviceOrientationOverrideParams ) {
isTopLevel := in .IsStart ()
if in .IsNull () {
if isTopLevel {
in .Consumed ()
}
in .Skip ()
return
}
in .Delim ('{' )
for !in .IsDelim ('}' ) {
key := in .UnsafeFieldName (false )
in .WantColon ()
if in .IsNull () {
in .Skip ()
in .WantComma ()
continue
}
switch key {
default :
in .SkipRecursive ()
}
in .WantComma ()
}
in .Delim ('}' )
if isTopLevel {
in .Consumed ()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDeviceorientation1(out *jwriter .Writer , in ClearDeviceOrientationOverrideParams ) {
out .RawByte ('{' )
first := true
_ = first
out .RawByte ('}' )
}
func (v ClearDeviceOrientationOverrideParams ) MarshalJSON () ([]byte , error ) {
w := jwriter .Writer {}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoDeviceorientation1 (&w , v )
return w .Buffer .BuildBytes (), w .Error
}
func (v ClearDeviceOrientationOverrideParams ) MarshalEasyJSON (w *jwriter .Writer ) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoDeviceorientation1 (w , v )
}
func (v *ClearDeviceOrientationOverrideParams ) UnmarshalJSON (data []byte ) error {
r := jlexer .Lexer {Data : data }
easyjsonC5a4559bDecodeGithubComChromedpCdprotoDeviceorientation1 (&r , v )
return r .Error ()
}
func (v *ClearDeviceOrientationOverrideParams ) UnmarshalEasyJSON (l *jlexer .Lexer ) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoDeviceorientation1 (l , v )
}
The pages are generated with Golds v0.8.2 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .