func (t *ResourceType) UnmarshalEasyJSON(in *jlexer.Lexer) {
	switch ResourceType(in.String()) {
	case ResourceTypeDocument:
		*t = ResourceTypeDocument
	case ResourceTypeStylesheet:
		*t = ResourceTypeStylesheet
	case ResourceTypeImage:
		*t = ResourceTypeImage
	case ResourceTypeMedia:
		*t = ResourceTypeMedia
	case ResourceTypeFont:
		*t = ResourceTypeFont
	case ResourceTypeScript:
		*t = ResourceTypeScript
	case ResourceTypeTextTrack:
		*t = ResourceTypeTextTrack
	case ResourceTypeXHR:
		*t = ResourceTypeXHR
	case ResourceTypeFetch:
		*t = ResourceTypeFetch
	case ResourceTypeEventSource:
		*t = ResourceTypeEventSource
	case ResourceTypeWebSocket:
		*t = ResourceTypeWebSocket
	case ResourceTypeManifest:
		*t = ResourceTypeManifest
	case ResourceTypeSignedExchange:
		*t = ResourceTypeSignedExchange
	case ResourceTypePing:
		*t = ResourceTypePing
	case ResourceTypeCSPViolationReport:
		*t = ResourceTypeCSPViolationReport
	case ResourceTypeOther:
		*t = ResourceTypeOther

	default:
		in.AddError(errors.New("unknown ResourceType value"))
	}
}
func (t *ResourceType) UnmarshalEasyJSON(in *jlexer.Lexer) {
	switch ResourceType(in.String()) {
	case ResourceTypeDocument:
		*t = ResourceTypeDocument
	case ResourceTypeStylesheet:
		*t = ResourceTypeStylesheet
	case ResourceTypeImage:
		*t = ResourceTypeImage
	case ResourceTypeMedia:
		*t = ResourceTypeMedia
	case ResourceTypeFont:
		*t = ResourceTypeFont
	case ResourceTypeScript:
		*t = ResourceTypeScript
	case ResourceTypeTextTrack:
		*t = ResourceTypeTextTrack
	case ResourceTypeXHR:
		*t = ResourceTypeXHR
	case ResourceTypeFetch:
		*t = ResourceTypeFetch
	case ResourceTypeEventSource:
		*t = ResourceTypeEventSource
	case ResourceTypeWebSocket:
		*t = ResourceTypeWebSocket
	case ResourceTypeManifest:
		*t = ResourceTypeManifest
	case ResourceTypeSignedExchange:
		*t = ResourceTypeSignedExchange
	case ResourceTypePing:
		*t = ResourceTypePing
	case ResourceTypeCSPViolationReport:
		*t = ResourceTypeCSPViolationReport
	case ResourceTypeOther:
		*t = ResourceTypeOther

	default:
		in.AddError(errors.New("unknown ResourceType value"))
	}
}
func ( t * ResourceType ) UnmarshalEasyJSON ( in * jlexer . Lexer ) { switch ResourceType ( in . String ( ) ) { case ResourceTypeDocument : * t = ResourceTypeDocument case ResourceTypeStylesheet : * t = ResourceTypeStylesheet case ResourceTypeImage : * t = ResourceTypeImage case ResourceTypeMedia : * t = ResourceTypeMedia case ResourceTypeFont : * t = ResourceTypeFont case ResourceTypeScript : * t = ResourceTypeScript case ResourceTypeTextTrack : * t = ResourceTypeTextTrack case ResourceTypeXHR : * t = ResourceTypeXHR case ResourceTypeFetch : * t = ResourceTypeFetch case ResourceTypeEventSource : * t = ResourceTypeEventSource case ResourceTypeWebSocket : * t = ResourceTypeWebSocket case ResourceTypeManifest : * t = ResourceTypeManifest case ResourceTypeSignedExchange : * t = ResourceTypeSignedExchange case ResourceTypePing : * t = ResourceTypePing case ResourceTypeCSPViolationReport : * t = ResourceTypeCSPViolationReport case ResourceTypeOther : * t = ResourceTypeOther default : in . AddError ( errors . New ( " " ) ) } }
// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
UnmarshalEasyJSON satisfies easyjson . Unmarshaler .