backgroundservice/types.go
func (t *ServiceName) UnmarshalEasyJSON(in *jlexer.Lexer) {
	switch ServiceName(in.String()) {
	case ServiceNameBackgroundFetch:
		*t = ServiceNameBackgroundFetch
	case ServiceNameBackgroundSync:
		*t = ServiceNameBackgroundSync

	default:
		in.AddError(errors.New("unknown ServiceName value"))
	}
}
func (t *ServiceName) UnmarshalEasyJSON(in *jlexer.Lexer) {
	switch ServiceName(in.String()) {
	case ServiceNameBackgroundFetch:
		*t = ServiceNameBackgroundFetch
	case ServiceNameBackgroundSync:
		*t = ServiceNameBackgroundSync

	default:
		in.AddError(errors.New("unknown ServiceName value"))
	}
}
// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.