// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.

package performance

import (
	json 
	easyjson 
	jlexer 
	jwriter 
)

// suppress unused package warning
var (
	_ *json.RawMessage
	_ *jlexer.Lexer
	_ *jwriter.Writer
	_ easyjson.Marshaler
)

func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPerformance( *jlexer.Lexer,  *Metric) {
	 := .IsStart()
	if .IsNull() {
		if  {
			.Consumed()
		}
		.Skip()
		return
	}
	.Delim('{')
	for !.IsDelim('}') {
		 := .UnsafeFieldName(false)
		.WantColon()
		if .IsNull() {
			.Skip()
			.WantComma()
			continue
		}
		switch  {
		case "name":
			.Name = string(.String())
		case "value":
			.Value = float64(.Float64())
		default:
			.SkipRecursive()
		}
		.WantComma()
	}
	.Delim('}')
	if  {
		.Consumed()
	}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPerformance( *jwriter.Writer,  Metric) {
	.RawByte('{')
	 := true
	_ = 
	{
		const  string = ",\"name\":"
		.RawString([1:])
		.String(string(.Name))
	}
	{
		const  string = ",\"value\":"
		.RawString()
		.Float64(float64(.Value))
	}
	.RawByte('}')
}

// MarshalJSON supports json.Marshaler interface
func ( Metric) () ([]byte, error) {
	 := jwriter.Writer{}
	easyjsonC5a4559bEncodeGithubComChromedpCdprotoPerformance(&, )
	return .Buffer.BuildBytes(), .Error
}

// MarshalEasyJSON supports easyjson.Marshaler interface
func ( Metric) ( *jwriter.Writer) {
	easyjsonC5a4559bEncodeGithubComChromedpCdprotoPerformance(, )
}

// UnmarshalJSON supports json.Unmarshaler interface
func ( *Metric) ( []byte) error {
	 := jlexer.Lexer{Data: }
	easyjsonC5a4559bDecodeGithubComChromedpCdprotoPerformance(&, )
	return .Error()
}

// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func ( *Metric) ( *jlexer.Lexer) {
	easyjsonC5a4559bDecodeGithubComChromedpCdprotoPerformance(, )
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPerformance1( *jlexer.Lexer,  *GetMetricsReturns) {
	 := .IsStart()
	if .IsNull() {
		if  {
			.Consumed()
		}
		.Skip()
		return
	}
	.Delim('{')
	for !.IsDelim('}') {
		 := .UnsafeFieldName(false)
		.WantColon()
		if .IsNull() {
			.Skip()
			.WantComma()
			continue
		}
		switch  {
		case "metrics":
			if .IsNull() {
				.Skip()
				.Metrics = nil
			} else {
				.Delim('[')
				if .Metrics == nil {
					if !.IsDelim(']') {
						.Metrics = make([]*Metric, 0, 8)
					} else {
						.Metrics = []*Metric{}
					}
				} else {
					.Metrics = (.Metrics)[:0]
				}
				for !.IsDelim(']') {
					var  *Metric
					if .IsNull() {
						.Skip()
						 = nil
					} else {
						if  == nil {
							 = new(Metric)
						}
						(*).UnmarshalEasyJSON()
					}
					.Metrics = append(.Metrics, )
					.WantComma()
				}
				.Delim(']')
			}
		default:
			.SkipRecursive()
		}
		.WantComma()
	}
	.Delim('}')
	if  {
		.Consumed()
	}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPerformance1( *jwriter.Writer,  GetMetricsReturns) {
	.RawByte('{')
	 := true
	_ = 
	if len(.Metrics) != 0 {
		const  string = ",\"metrics\":"
		 = false
		.RawString([1:])
		{
			.RawByte('[')
			for ,  := range .Metrics {
				if  > 0 {
					.RawByte(',')
				}
				if  == nil {
					.RawString("null")
				} else {
					(*).MarshalEasyJSON()
				}
			}
			.RawByte(']')
		}
	}
	.RawByte('}')
}

// MarshalJSON supports json.Marshaler interface
func ( GetMetricsReturns) () ([]byte, error) {
	 := jwriter.Writer{}
	easyjsonC5a4559bEncodeGithubComChromedpCdprotoPerformance1(&, )
	return .Buffer.BuildBytes(), .Error
}

// MarshalEasyJSON supports easyjson.Marshaler interface
func ( GetMetricsReturns) ( *jwriter.Writer) {
	easyjsonC5a4559bEncodeGithubComChromedpCdprotoPerformance1(, )
}

// UnmarshalJSON supports json.Unmarshaler interface
func ( *GetMetricsReturns) ( []byte) error {
	 := jlexer.Lexer{Data: }
	easyjsonC5a4559bDecodeGithubComChromedpCdprotoPerformance1(&, )
	return .Error()
}

// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func ( *GetMetricsReturns) ( *jlexer.Lexer) {
	easyjsonC5a4559bDecodeGithubComChromedpCdprotoPerformance1(, )
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPerformance2( *jlexer.Lexer,  *GetMetricsParams) {
	 := .IsStart()
	if .IsNull() {
		if  {
			.Consumed()
		}
		.Skip()
		return
	}
	.Delim('{')
	for !.IsDelim('}') {
		 := .UnsafeFieldName(false)
		.WantColon()
		if .IsNull() {
			.Skip()
			.WantComma()
			continue
		}
		switch  {
		default:
			.SkipRecursive()
		}
		.WantComma()
	}
	.Delim('}')
	if  {
		.Consumed()
	}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPerformance2( *jwriter.Writer,  GetMetricsParams) {
	.RawByte('{')
	 := true
	_ = 
	.RawByte('}')
}

// MarshalJSON supports json.Marshaler interface
func ( GetMetricsParams) () ([]byte, error) {
	 := jwriter.Writer{}
	easyjsonC5a4559bEncodeGithubComChromedpCdprotoPerformance2(&, )
	return .Buffer.BuildBytes(), .Error
}

// MarshalEasyJSON supports easyjson.Marshaler interface
func ( GetMetricsParams) ( *jwriter.Writer) {
	easyjsonC5a4559bEncodeGithubComChromedpCdprotoPerformance2(, )
}

// UnmarshalJSON supports json.Unmarshaler interface
func ( *GetMetricsParams) ( []byte) error {
	 := jlexer.Lexer{Data: }
	easyjsonC5a4559bDecodeGithubComChromedpCdprotoPerformance2(&, )
	return .Error()
}

// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func ( *GetMetricsParams) ( *jlexer.Lexer) {
	easyjsonC5a4559bDecodeGithubComChromedpCdprotoPerformance2(, )
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPerformance3( *jlexer.Lexer,  *EventMetrics) {
	 := .IsStart()
	if .IsNull() {
		if  {
			.Consumed()
		}
		.Skip()
		return
	}
	.Delim('{')
	for !.IsDelim('}') {
		 := .UnsafeFieldName(false)
		.WantColon()
		if .IsNull() {
			.Skip()
			.WantComma()
			continue
		}
		switch  {
		case "metrics":
			if .IsNull() {
				.Skip()
				.Metrics = nil
			} else {
				.Delim('[')
				if .Metrics == nil {
					if !.IsDelim(']') {
						.Metrics = make([]*Metric, 0, 8)
					} else {
						.Metrics = []*Metric{}
					}
				} else {
					.Metrics = (.Metrics)[:0]
				}
				for !.IsDelim(']') {
					var  *Metric
					if .IsNull() {
						.Skip()
						 = nil
					} else {
						if  == nil {
							 = new(Metric)
						}
						(*).UnmarshalEasyJSON()
					}
					.Metrics = append(.Metrics, )
					.WantComma()
				}
				.Delim(']')
			}
		case "title":
			.Title = string(.String())
		default:
			.SkipRecursive()
		}
		.WantComma()
	}
	.Delim('}')
	if  {
		.Consumed()
	}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPerformance3( *jwriter.Writer,  EventMetrics) {
	.RawByte('{')
	 := true
	_ = 
	{
		const  string = ",\"metrics\":"
		.RawString([1:])
		if .Metrics == nil && (.Flags&jwriter.NilSliceAsEmpty) == 0 {
			.RawString("null")
		} else {
			.RawByte('[')
			for ,  := range .Metrics {
				if  > 0 {
					.RawByte(',')
				}
				if  == nil {
					.RawString("null")
				} else {
					(*).MarshalEasyJSON()
				}
			}
			.RawByte(']')
		}
	}
	{
		const  string = ",\"title\":"
		.RawString()
		.String(string(.Title))
	}
	.RawByte('}')
}

// MarshalJSON supports json.Marshaler interface
func ( EventMetrics) () ([]byte, error) {
	 := jwriter.Writer{}
	easyjsonC5a4559bEncodeGithubComChromedpCdprotoPerformance3(&, )
	return .Buffer.BuildBytes(), .Error
}

// MarshalEasyJSON supports easyjson.Marshaler interface
func ( EventMetrics) ( *jwriter.Writer) {
	easyjsonC5a4559bEncodeGithubComChromedpCdprotoPerformance3(, )
}

// UnmarshalJSON supports json.Unmarshaler interface
func ( *EventMetrics) ( []byte) error {
	 := jlexer.Lexer{Data: }
	easyjsonC5a4559bDecodeGithubComChromedpCdprotoPerformance3(&, )
	return .Error()
}

// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func ( *EventMetrics) ( *jlexer.Lexer) {
	easyjsonC5a4559bDecodeGithubComChromedpCdprotoPerformance3(, )
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPerformance4( *jlexer.Lexer,  *EnableParams) {
	 := .IsStart()
	if .IsNull() {
		if  {
			.Consumed()
		}
		.Skip()
		return
	}
	.Delim('{')
	for !.IsDelim('}') {
		 := .UnsafeFieldName(false)
		.WantColon()
		if .IsNull() {
			.Skip()
			.WantComma()
			continue
		}
		switch  {
		case "timeDomain":
			(.TimeDomain).UnmarshalEasyJSON()
		default:
			.SkipRecursive()
		}
		.WantComma()
	}
	.Delim('}')
	if  {
		.Consumed()
	}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPerformance4( *jwriter.Writer,  EnableParams) {
	.RawByte('{')
	 := true
	_ = 
	if .TimeDomain != "" {
		const  string = ",\"timeDomain\":"
		 = false
		.RawString([1:])
		(.TimeDomain).MarshalEasyJSON()
	}
	.RawByte('}')
}

// MarshalJSON supports json.Marshaler interface
func ( EnableParams) () ([]byte, error) {
	 := jwriter.Writer{}
	easyjsonC5a4559bEncodeGithubComChromedpCdprotoPerformance4(&, )
	return .Buffer.BuildBytes(), .Error
}

// MarshalEasyJSON supports easyjson.Marshaler interface
func ( EnableParams) ( *jwriter.Writer) {
	easyjsonC5a4559bEncodeGithubComChromedpCdprotoPerformance4(, )
}

// UnmarshalJSON supports json.Unmarshaler interface
func ( *EnableParams) ( []byte) error {
	 := jlexer.Lexer{Data: }
	easyjsonC5a4559bDecodeGithubComChromedpCdprotoPerformance4(&, )
	return .Error()
}

// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func ( *EnableParams) ( *jlexer.Lexer) {
	easyjsonC5a4559bDecodeGithubComChromedpCdprotoPerformance4(, )
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPerformance5( *jlexer.Lexer,  *DisableParams) {
	 := .IsStart()
	if .IsNull() {
		if  {
			.Consumed()
		}
		.Skip()
		return
	}
	.Delim('{')
	for !.IsDelim('}') {
		 := .UnsafeFieldName(false)
		.WantColon()
		if .IsNull() {
			.Skip()
			.WantComma()
			continue
		}
		switch  {
		default:
			.SkipRecursive()
		}
		.WantComma()
	}
	.Delim('}')
	if  {
		.Consumed()
	}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPerformance5( *jwriter.Writer,  DisableParams) {
	.RawByte('{')
	 := true
	_ = 
	.RawByte('}')
}

// MarshalJSON supports json.Marshaler interface
func ( DisableParams) () ([]byte, error) {
	 := jwriter.Writer{}
	easyjsonC5a4559bEncodeGithubComChromedpCdprotoPerformance5(&, )
	return .Buffer.BuildBytes(), .Error
}

// MarshalEasyJSON supports easyjson.Marshaler interface
func ( DisableParams) ( *jwriter.Writer) {
	easyjsonC5a4559bEncodeGithubComChromedpCdprotoPerformance5(, )
}

// UnmarshalJSON supports json.Unmarshaler interface
func ( *DisableParams) ( []byte) error {
	 := jlexer.Lexer{Data: }
	easyjsonC5a4559bDecodeGithubComChromedpCdprotoPerformance5(&, )
	return .Error()
}

// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func ( *DisableParams) ( *jlexer.Lexer) {
	easyjsonC5a4559bDecodeGithubComChromedpCdprotoPerformance5(, )
}