github.com/mailgun/mailgun-go/v3@v3.6.4/events/events_easyjson.go (about)

     1  // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
     2  
     3  package events
     4  
     5  import (
     6  	json "encoding/json"
     7  	easyjson "github.com/mailru/easyjson"
     8  	jlexer "github.com/mailru/easyjson/jlexer"
     9  	jwriter "github.com/mailru/easyjson/jwriter"
    10  )
    11  
    12  // suppress unused package warning
    13  var (
    14  	_ *json.RawMessage
    15  	_ *jlexer.Lexer
    16  	_ *jwriter.Writer
    17  	_ easyjson.Marshaler
    18  )
    19  
    20  func easyjson692db02bDecodeGithubComMailgunMailgunGoEvents(in *jlexer.Lexer, out *Unsubscribed) {
    21  	isTopLevel := in.IsStart()
    22  	if in.IsNull() {
    23  		if isTopLevel {
    24  			in.Consumed()
    25  		}
    26  		in.Skip()
    27  		return
    28  	}
    29  	in.Delim('{')
    30  	for !in.IsDelim('}') {
    31  		key := in.UnsafeString()
    32  		in.WantColon()
    33  		if in.IsNull() {
    34  			in.Skip()
    35  			in.WantComma()
    36  			continue
    37  		}
    38  		switch key {
    39  		case "message":
    40  			if data := in.Raw(); in.Ok() {
    41  				in.AddError((out.Message).UnmarshalJSON(data))
    42  			}
    43  		case "campaigns":
    44  			if in.IsNull() {
    45  				in.Skip()
    46  				out.Campaigns = nil
    47  			} else {
    48  				in.Delim('[')
    49  				if out.Campaigns == nil {
    50  					if !in.IsDelim(']') {
    51  						out.Campaigns = make([]Campaign, 0, 2)
    52  					} else {
    53  						out.Campaigns = []Campaign{}
    54  					}
    55  				} else {
    56  					out.Campaigns = (out.Campaigns)[:0]
    57  				}
    58  				for !in.IsDelim(']') {
    59  					var v1 Campaign
    60  					if data := in.Raw(); in.Ok() {
    61  						in.AddError((v1).UnmarshalJSON(data))
    62  					}
    63  					out.Campaigns = append(out.Campaigns, v1)
    64  					in.WantComma()
    65  				}
    66  				in.Delim(']')
    67  			}
    68  		case "mailing-list":
    69  			if data := in.Raw(); in.Ok() {
    70  				in.AddError((out.MailingList).UnmarshalJSON(data))
    71  			}
    72  		case "recipient":
    73  			out.Recipient = string(in.String())
    74  		case "recipient-domain":
    75  			out.RecipientDomain = string(in.String())
    76  		case "tags":
    77  			if in.IsNull() {
    78  				in.Skip()
    79  				out.Tags = nil
    80  			} else {
    81  				in.Delim('[')
    82  				if out.Tags == nil {
    83  					if !in.IsDelim(']') {
    84  						out.Tags = make([]string, 0, 4)
    85  					} else {
    86  						out.Tags = []string{}
    87  					}
    88  				} else {
    89  					out.Tags = (out.Tags)[:0]
    90  				}
    91  				for !in.IsDelim(']') {
    92  					var v2 string
    93  					v2 = string(in.String())
    94  					out.Tags = append(out.Tags, v2)
    95  					in.WantComma()
    96  				}
    97  				in.Delim(']')
    98  			}
    99  		case "ip":
   100  			out.IP = string(in.String())
   101  		case "client-info":
   102  			if data := in.Raw(); in.Ok() {
   103  				in.AddError((out.ClientInfo).UnmarshalJSON(data))
   104  			}
   105  		case "geolocation":
   106  			if data := in.Raw(); in.Ok() {
   107  				in.AddError((out.GeoLocation).UnmarshalJSON(data))
   108  			}
   109  		case "user-variables":
   110  			if in.IsNull() {
   111  				in.Skip()
   112  			} else {
   113  				in.Delim('{')
   114  				if !in.IsDelim('}') {
   115  					out.UserVariables = make(map[string]interface{})
   116  				} else {
   117  					out.UserVariables = nil
   118  				}
   119  				for !in.IsDelim('}') {
   120  					key := string(in.String())
   121  					in.WantColon()
   122  					var v3 interface{}
   123  					if m, ok := v3.(easyjson.Unmarshaler); ok {
   124  						m.UnmarshalEasyJSON(in)
   125  					} else if m, ok := v3.(json.Unmarshaler); ok {
   126  						_ = m.UnmarshalJSON(in.Raw())
   127  					} else {
   128  						v3 = in.Interface()
   129  					}
   130  					(out.UserVariables)[key] = v3
   131  					in.WantComma()
   132  				}
   133  				in.Delim('}')
   134  			}
   135  		case "timestamp":
   136  			out.Timestamp = float64(in.Float64())
   137  		case "id":
   138  			out.ID = string(in.String())
   139  		case "event":
   140  			out.Name = string(in.String())
   141  		default:
   142  			in.SkipRecursive()
   143  		}
   144  		in.WantComma()
   145  	}
   146  	in.Delim('}')
   147  	if isTopLevel {
   148  		in.Consumed()
   149  	}
   150  }
   151  func easyjson692db02bEncodeGithubComMailgunMailgunGoEvents(out *jwriter.Writer, in Unsubscribed) {
   152  	out.RawByte('{')
   153  	first := true
   154  	_ = first
   155  	{
   156  		const prefix string = ",\"message\":"
   157  		if first {
   158  			first = false
   159  			out.RawString(prefix[1:])
   160  		} else {
   161  			out.RawString(prefix)
   162  		}
   163  		out.Raw((in.Message).MarshalJSON())
   164  	}
   165  	{
   166  		const prefix string = ",\"campaigns\":"
   167  		if first {
   168  			first = false
   169  			out.RawString(prefix[1:])
   170  		} else {
   171  			out.RawString(prefix)
   172  		}
   173  		if in.Campaigns == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
   174  			out.RawString("null")
   175  		} else {
   176  			out.RawByte('[')
   177  			for v4, v5 := range in.Campaigns {
   178  				if v4 > 0 {
   179  					out.RawByte(',')
   180  				}
   181  				out.Raw((v5).MarshalJSON())
   182  			}
   183  			out.RawByte(']')
   184  		}
   185  	}
   186  	{
   187  		const prefix string = ",\"mailing-list\":"
   188  		if first {
   189  			first = false
   190  			out.RawString(prefix[1:])
   191  		} else {
   192  			out.RawString(prefix)
   193  		}
   194  		out.Raw((in.MailingList).MarshalJSON())
   195  	}
   196  	{
   197  		const prefix string = ",\"recipient\":"
   198  		if first {
   199  			first = false
   200  			out.RawString(prefix[1:])
   201  		} else {
   202  			out.RawString(prefix)
   203  		}
   204  		out.String(string(in.Recipient))
   205  	}
   206  	{
   207  		const prefix string = ",\"recipient-domain\":"
   208  		if first {
   209  			first = false
   210  			out.RawString(prefix[1:])
   211  		} else {
   212  			out.RawString(prefix)
   213  		}
   214  		out.String(string(in.RecipientDomain))
   215  	}
   216  	{
   217  		const prefix string = ",\"tags\":"
   218  		if first {
   219  			first = false
   220  			out.RawString(prefix[1:])
   221  		} else {
   222  			out.RawString(prefix)
   223  		}
   224  		if in.Tags == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
   225  			out.RawString("null")
   226  		} else {
   227  			out.RawByte('[')
   228  			for v6, v7 := range in.Tags {
   229  				if v6 > 0 {
   230  					out.RawByte(',')
   231  				}
   232  				out.String(string(v7))
   233  			}
   234  			out.RawByte(']')
   235  		}
   236  	}
   237  	{
   238  		const prefix string = ",\"ip\":"
   239  		if first {
   240  			first = false
   241  			out.RawString(prefix[1:])
   242  		} else {
   243  			out.RawString(prefix)
   244  		}
   245  		out.String(string(in.IP))
   246  	}
   247  	{
   248  		const prefix string = ",\"client-info\":"
   249  		if first {
   250  			first = false
   251  			out.RawString(prefix[1:])
   252  		} else {
   253  			out.RawString(prefix)
   254  		}
   255  		out.Raw((in.ClientInfo).MarshalJSON())
   256  	}
   257  	{
   258  		const prefix string = ",\"geolocation\":"
   259  		if first {
   260  			first = false
   261  			out.RawString(prefix[1:])
   262  		} else {
   263  			out.RawString(prefix)
   264  		}
   265  		out.Raw((in.GeoLocation).MarshalJSON())
   266  	}
   267  	{
   268  		const prefix string = ",\"user-variables\":"
   269  		if first {
   270  			first = false
   271  			out.RawString(prefix[1:])
   272  		} else {
   273  			out.RawString(prefix)
   274  		}
   275  		if in.UserVariables == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
   276  			out.RawString(`null`)
   277  		} else {
   278  			out.RawByte('{')
   279  			v8First := true
   280  			for v8Name, v8Value := range in.UserVariables {
   281  				if v8First {
   282  					v8First = false
   283  				} else {
   284  					out.RawByte(',')
   285  				}
   286  				out.String(string(v8Name))
   287  				out.RawByte(':')
   288  				if m, ok := v8Value.(easyjson.Marshaler); ok {
   289  					m.MarshalEasyJSON(out)
   290  				} else if m, ok := v8Value.(json.Marshaler); ok {
   291  					out.Raw(m.MarshalJSON())
   292  				} else {
   293  					out.Raw(json.Marshal(v8Value))
   294  				}
   295  			}
   296  			out.RawByte('}')
   297  		}
   298  	}
   299  	{
   300  		const prefix string = ",\"timestamp\":"
   301  		if first {
   302  			first = false
   303  			out.RawString(prefix[1:])
   304  		} else {
   305  			out.RawString(prefix)
   306  		}
   307  		out.Float64(float64(in.Timestamp))
   308  	}
   309  	{
   310  		const prefix string = ",\"id\":"
   311  		if first {
   312  			first = false
   313  			out.RawString(prefix[1:])
   314  		} else {
   315  			out.RawString(prefix)
   316  		}
   317  		out.String(string(in.ID))
   318  	}
   319  	{
   320  		const prefix string = ",\"event\":"
   321  		if first {
   322  			first = false
   323  			out.RawString(prefix[1:])
   324  		} else {
   325  			out.RawString(prefix)
   326  		}
   327  		out.String(string(in.Name))
   328  	}
   329  	out.RawByte('}')
   330  }
   331  
   332  // MarshalJSON supports json.Marshaler interface
   333  func (v Unsubscribed) MarshalJSON() ([]byte, error) {
   334  	w := jwriter.Writer{}
   335  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents(&w, v)
   336  	return w.Buffer.BuildBytes(), w.Error
   337  }
   338  
   339  // MarshalEasyJSON supports easyjson.Marshaler interface
   340  func (v Unsubscribed) MarshalEasyJSON(w *jwriter.Writer) {
   341  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents(w, v)
   342  }
   343  
   344  // UnmarshalJSON supports json.Unmarshaler interface
   345  func (v *Unsubscribed) UnmarshalJSON(data []byte) error {
   346  	r := jlexer.Lexer{Data: data}
   347  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents(&r, v)
   348  	return r.Error()
   349  }
   350  
   351  // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
   352  func (v *Unsubscribed) UnmarshalEasyJSON(l *jlexer.Lexer) {
   353  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents(l, v)
   354  }
   355  func easyjson692db02bDecodeGithubComMailgunMailgunGoEvents1(in *jlexer.Lexer, out *Stored) {
   356  	isTopLevel := in.IsStart()
   357  	if in.IsNull() {
   358  		if isTopLevel {
   359  			in.Consumed()
   360  		}
   361  		in.Skip()
   362  		return
   363  	}
   364  	in.Delim('{')
   365  	for !in.IsDelim('}') {
   366  		key := in.UnsafeString()
   367  		in.WantColon()
   368  		if in.IsNull() {
   369  			in.Skip()
   370  			in.WantComma()
   371  			continue
   372  		}
   373  		switch key {
   374  		case "message":
   375  			if data := in.Raw(); in.Ok() {
   376  				in.AddError((out.Message).UnmarshalJSON(data))
   377  			}
   378  		case "storage":
   379  			if data := in.Raw(); in.Ok() {
   380  				in.AddError((out.Storage).UnmarshalJSON(data))
   381  			}
   382  		case "flags":
   383  			if data := in.Raw(); in.Ok() {
   384  				in.AddError((out.Flags).UnmarshalJSON(data))
   385  			}
   386  		case "tags":
   387  			if in.IsNull() {
   388  				in.Skip()
   389  				out.Tags = nil
   390  			} else {
   391  				in.Delim('[')
   392  				if out.Tags == nil {
   393  					if !in.IsDelim(']') {
   394  						out.Tags = make([]string, 0, 4)
   395  					} else {
   396  						out.Tags = []string{}
   397  					}
   398  				} else {
   399  					out.Tags = (out.Tags)[:0]
   400  				}
   401  				for !in.IsDelim(']') {
   402  					var v9 string
   403  					v9 = string(in.String())
   404  					out.Tags = append(out.Tags, v9)
   405  					in.WantComma()
   406  				}
   407  				in.Delim(']')
   408  			}
   409  		case "campaigns":
   410  			if in.IsNull() {
   411  				in.Skip()
   412  				out.Campaigns = nil
   413  			} else {
   414  				in.Delim('[')
   415  				if out.Campaigns == nil {
   416  					if !in.IsDelim(']') {
   417  						out.Campaigns = make([]Campaign, 0, 2)
   418  					} else {
   419  						out.Campaigns = []Campaign{}
   420  					}
   421  				} else {
   422  					out.Campaigns = (out.Campaigns)[:0]
   423  				}
   424  				for !in.IsDelim(']') {
   425  					var v10 Campaign
   426  					if data := in.Raw(); in.Ok() {
   427  						in.AddError((v10).UnmarshalJSON(data))
   428  					}
   429  					out.Campaigns = append(out.Campaigns, v10)
   430  					in.WantComma()
   431  				}
   432  				in.Delim(']')
   433  			}
   434  		case "user-variables":
   435  			if in.IsNull() {
   436  				in.Skip()
   437  			} else {
   438  				in.Delim('{')
   439  				if !in.IsDelim('}') {
   440  					out.UserVariables = make(map[string]interface{})
   441  				} else {
   442  					out.UserVariables = nil
   443  				}
   444  				for !in.IsDelim('}') {
   445  					key := string(in.String())
   446  					in.WantColon()
   447  					var v11 interface{}
   448  					if m, ok := v11.(easyjson.Unmarshaler); ok {
   449  						m.UnmarshalEasyJSON(in)
   450  					} else if m, ok := v11.(json.Unmarshaler); ok {
   451  						_ = m.UnmarshalJSON(in.Raw())
   452  					} else {
   453  						v11 = in.Interface()
   454  					}
   455  					(out.UserVariables)[key] = v11
   456  					in.WantComma()
   457  				}
   458  				in.Delim('}')
   459  			}
   460  		case "timestamp":
   461  			out.Timestamp = float64(in.Float64())
   462  		case "id":
   463  			out.ID = string(in.String())
   464  		case "event":
   465  			out.Name = string(in.String())
   466  		default:
   467  			in.SkipRecursive()
   468  		}
   469  		in.WantComma()
   470  	}
   471  	in.Delim('}')
   472  	if isTopLevel {
   473  		in.Consumed()
   474  	}
   475  }
   476  func easyjson692db02bEncodeGithubComMailgunMailgunGoEvents1(out *jwriter.Writer, in Stored) {
   477  	out.RawByte('{')
   478  	first := true
   479  	_ = first
   480  	{
   481  		const prefix string = ",\"message\":"
   482  		if first {
   483  			first = false
   484  			out.RawString(prefix[1:])
   485  		} else {
   486  			out.RawString(prefix)
   487  		}
   488  		out.Raw((in.Message).MarshalJSON())
   489  	}
   490  	{
   491  		const prefix string = ",\"storage\":"
   492  		if first {
   493  			first = false
   494  			out.RawString(prefix[1:])
   495  		} else {
   496  			out.RawString(prefix)
   497  		}
   498  		out.Raw((in.Storage).MarshalJSON())
   499  	}
   500  	{
   501  		const prefix string = ",\"flags\":"
   502  		if first {
   503  			first = false
   504  			out.RawString(prefix[1:])
   505  		} else {
   506  			out.RawString(prefix)
   507  		}
   508  		out.Raw((in.Flags).MarshalJSON())
   509  	}
   510  	{
   511  		const prefix string = ",\"tags\":"
   512  		if first {
   513  			first = false
   514  			out.RawString(prefix[1:])
   515  		} else {
   516  			out.RawString(prefix)
   517  		}
   518  		if in.Tags == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
   519  			out.RawString("null")
   520  		} else {
   521  			out.RawByte('[')
   522  			for v12, v13 := range in.Tags {
   523  				if v12 > 0 {
   524  					out.RawByte(',')
   525  				}
   526  				out.String(string(v13))
   527  			}
   528  			out.RawByte(']')
   529  		}
   530  	}
   531  	{
   532  		const prefix string = ",\"campaigns\":"
   533  		if first {
   534  			first = false
   535  			out.RawString(prefix[1:])
   536  		} else {
   537  			out.RawString(prefix)
   538  		}
   539  		if in.Campaigns == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
   540  			out.RawString("null")
   541  		} else {
   542  			out.RawByte('[')
   543  			for v14, v15 := range in.Campaigns {
   544  				if v14 > 0 {
   545  					out.RawByte(',')
   546  				}
   547  				out.Raw((v15).MarshalJSON())
   548  			}
   549  			out.RawByte(']')
   550  		}
   551  	}
   552  	{
   553  		const prefix string = ",\"user-variables\":"
   554  		if first {
   555  			first = false
   556  			out.RawString(prefix[1:])
   557  		} else {
   558  			out.RawString(prefix)
   559  		}
   560  		if in.UserVariables == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
   561  			out.RawString(`null`)
   562  		} else {
   563  			out.RawByte('{')
   564  			v16First := true
   565  			for v16Name, v16Value := range in.UserVariables {
   566  				if v16First {
   567  					v16First = false
   568  				} else {
   569  					out.RawByte(',')
   570  				}
   571  				out.String(string(v16Name))
   572  				out.RawByte(':')
   573  				if m, ok := v16Value.(easyjson.Marshaler); ok {
   574  					m.MarshalEasyJSON(out)
   575  				} else if m, ok := v16Value.(json.Marshaler); ok {
   576  					out.Raw(m.MarshalJSON())
   577  				} else {
   578  					out.Raw(json.Marshal(v16Value))
   579  				}
   580  			}
   581  			out.RawByte('}')
   582  		}
   583  	}
   584  	{
   585  		const prefix string = ",\"timestamp\":"
   586  		if first {
   587  			first = false
   588  			out.RawString(prefix[1:])
   589  		} else {
   590  			out.RawString(prefix)
   591  		}
   592  		out.Float64(float64(in.Timestamp))
   593  	}
   594  	{
   595  		const prefix string = ",\"id\":"
   596  		if first {
   597  			first = false
   598  			out.RawString(prefix[1:])
   599  		} else {
   600  			out.RawString(prefix)
   601  		}
   602  		out.String(string(in.ID))
   603  	}
   604  	{
   605  		const prefix string = ",\"event\":"
   606  		if first {
   607  			first = false
   608  			out.RawString(prefix[1:])
   609  		} else {
   610  			out.RawString(prefix)
   611  		}
   612  		out.String(string(in.Name))
   613  	}
   614  	out.RawByte('}')
   615  }
   616  
   617  // MarshalJSON supports json.Marshaler interface
   618  func (v Stored) MarshalJSON() ([]byte, error) {
   619  	w := jwriter.Writer{}
   620  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents1(&w, v)
   621  	return w.Buffer.BuildBytes(), w.Error
   622  }
   623  
   624  // MarshalEasyJSON supports easyjson.Marshaler interface
   625  func (v Stored) MarshalEasyJSON(w *jwriter.Writer) {
   626  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents1(w, v)
   627  }
   628  
   629  // UnmarshalJSON supports json.Unmarshaler interface
   630  func (v *Stored) UnmarshalJSON(data []byte) error {
   631  	r := jlexer.Lexer{Data: data}
   632  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents1(&r, v)
   633  	return r.Error()
   634  }
   635  
   636  // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
   637  func (v *Stored) UnmarshalEasyJSON(l *jlexer.Lexer) {
   638  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents1(l, v)
   639  }
   640  func easyjson692db02bDecodeGithubComMailgunMailgunGoEvents2(in *jlexer.Lexer, out *Response) {
   641  	isTopLevel := in.IsStart()
   642  	if in.IsNull() {
   643  		if isTopLevel {
   644  			in.Consumed()
   645  		}
   646  		in.Skip()
   647  		return
   648  	}
   649  	in.Delim('{')
   650  	for !in.IsDelim('}') {
   651  		key := in.UnsafeString()
   652  		in.WantColon()
   653  		if in.IsNull() {
   654  			in.Skip()
   655  			in.WantComma()
   656  			continue
   657  		}
   658  		switch key {
   659  		case "items":
   660  			if in.IsNull() {
   661  				in.Skip()
   662  				out.Items = nil
   663  			} else {
   664  				in.Delim('[')
   665  				if out.Items == nil {
   666  					if !in.IsDelim(']') {
   667  						out.Items = make([]RawJSON, 0, 2)
   668  					} else {
   669  						out.Items = []RawJSON{}
   670  					}
   671  				} else {
   672  					out.Items = (out.Items)[:0]
   673  				}
   674  				for !in.IsDelim(']') {
   675  					var v17 RawJSON
   676  					if data := in.Raw(); in.Ok() {
   677  						in.AddError((v17).UnmarshalJSON(data))
   678  					}
   679  					out.Items = append(out.Items, v17)
   680  					in.WantComma()
   681  				}
   682  				in.Delim(']')
   683  			}
   684  		case "paging":
   685  			if data := in.Raw(); in.Ok() {
   686  				in.AddError((out.Paging).UnmarshalJSON(data))
   687  			}
   688  		default:
   689  			in.SkipRecursive()
   690  		}
   691  		in.WantComma()
   692  	}
   693  	in.Delim('}')
   694  	if isTopLevel {
   695  		in.Consumed()
   696  	}
   697  }
   698  func easyjson692db02bEncodeGithubComMailgunMailgunGoEvents2(out *jwriter.Writer, in Response) {
   699  	out.RawByte('{')
   700  	first := true
   701  	_ = first
   702  	{
   703  		const prefix string = ",\"items\":"
   704  		if first {
   705  			first = false
   706  			out.RawString(prefix[1:])
   707  		} else {
   708  			out.RawString(prefix)
   709  		}
   710  		if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
   711  			out.RawString("null")
   712  		} else {
   713  			out.RawByte('[')
   714  			for v18, v19 := range in.Items {
   715  				if v18 > 0 {
   716  					out.RawByte(',')
   717  				}
   718  				out.Base64Bytes(v19)
   719  			}
   720  			out.RawByte(']')
   721  		}
   722  	}
   723  	{
   724  		const prefix string = ",\"paging\":"
   725  		if first {
   726  			first = false
   727  			out.RawString(prefix[1:])
   728  		} else {
   729  			out.RawString(prefix)
   730  		}
   731  		out.Raw((in.Paging).MarshalJSON())
   732  	}
   733  	out.RawByte('}')
   734  }
   735  
   736  // MarshalJSON supports json.Marshaler interface
   737  func (v Response) MarshalJSON() ([]byte, error) {
   738  	w := jwriter.Writer{}
   739  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents2(&w, v)
   740  	return w.Buffer.BuildBytes(), w.Error
   741  }
   742  
   743  // MarshalEasyJSON supports easyjson.Marshaler interface
   744  func (v Response) MarshalEasyJSON(w *jwriter.Writer) {
   745  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents2(w, v)
   746  }
   747  
   748  // UnmarshalJSON supports json.Unmarshaler interface
   749  func (v *Response) UnmarshalJSON(data []byte) error {
   750  	r := jlexer.Lexer{Data: data}
   751  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents2(&r, v)
   752  	return r.Error()
   753  }
   754  
   755  // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
   756  func (v *Response) UnmarshalEasyJSON(l *jlexer.Lexer) {
   757  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents2(l, v)
   758  }
   759  func easyjson692db02bDecodeGithubComMailgunMailgunGoEvents3(in *jlexer.Lexer, out *Rejected) {
   760  	isTopLevel := in.IsStart()
   761  	if in.IsNull() {
   762  		if isTopLevel {
   763  			in.Consumed()
   764  		}
   765  		in.Skip()
   766  		return
   767  	}
   768  	in.Delim('{')
   769  	for !in.IsDelim('}') {
   770  		key := in.UnsafeString()
   771  		in.WantColon()
   772  		if in.IsNull() {
   773  			in.Skip()
   774  			in.WantComma()
   775  			continue
   776  		}
   777  		switch key {
   778  		case "reject":
   779  			easyjson692db02bDecode(in, &out.Reject)
   780  		case "message":
   781  			if data := in.Raw(); in.Ok() {
   782  				in.AddError((out.Message).UnmarshalJSON(data))
   783  			}
   784  		case "storage":
   785  			if data := in.Raw(); in.Ok() {
   786  				in.AddError((out.Storage).UnmarshalJSON(data))
   787  			}
   788  		case "flags":
   789  			if data := in.Raw(); in.Ok() {
   790  				in.AddError((out.Flags).UnmarshalJSON(data))
   791  			}
   792  		case "tags":
   793  			if in.IsNull() {
   794  				in.Skip()
   795  				out.Tags = nil
   796  			} else {
   797  				in.Delim('[')
   798  				if out.Tags == nil {
   799  					if !in.IsDelim(']') {
   800  						out.Tags = make([]string, 0, 4)
   801  					} else {
   802  						out.Tags = []string{}
   803  					}
   804  				} else {
   805  					out.Tags = (out.Tags)[:0]
   806  				}
   807  				for !in.IsDelim(']') {
   808  					var v22 string
   809  					v22 = string(in.String())
   810  					out.Tags = append(out.Tags, v22)
   811  					in.WantComma()
   812  				}
   813  				in.Delim(']')
   814  			}
   815  		case "campaigns":
   816  			if in.IsNull() {
   817  				in.Skip()
   818  				out.Campaigns = nil
   819  			} else {
   820  				in.Delim('[')
   821  				if out.Campaigns == nil {
   822  					if !in.IsDelim(']') {
   823  						out.Campaigns = make([]Campaign, 0, 2)
   824  					} else {
   825  						out.Campaigns = []Campaign{}
   826  					}
   827  				} else {
   828  					out.Campaigns = (out.Campaigns)[:0]
   829  				}
   830  				for !in.IsDelim(']') {
   831  					var v23 Campaign
   832  					if data := in.Raw(); in.Ok() {
   833  						in.AddError((v23).UnmarshalJSON(data))
   834  					}
   835  					out.Campaigns = append(out.Campaigns, v23)
   836  					in.WantComma()
   837  				}
   838  				in.Delim(']')
   839  			}
   840  		case "user-variables":
   841  			if in.IsNull() {
   842  				in.Skip()
   843  			} else {
   844  				in.Delim('{')
   845  				if !in.IsDelim('}') {
   846  					out.UserVariables = make(map[string]interface{})
   847  				} else {
   848  					out.UserVariables = nil
   849  				}
   850  				for !in.IsDelim('}') {
   851  					key := string(in.String())
   852  					in.WantColon()
   853  					var v24 interface{}
   854  					if m, ok := v24.(easyjson.Unmarshaler); ok {
   855  						m.UnmarshalEasyJSON(in)
   856  					} else if m, ok := v24.(json.Unmarshaler); ok {
   857  						_ = m.UnmarshalJSON(in.Raw())
   858  					} else {
   859  						v24 = in.Interface()
   860  					}
   861  					(out.UserVariables)[key] = v24
   862  					in.WantComma()
   863  				}
   864  				in.Delim('}')
   865  			}
   866  		case "timestamp":
   867  			out.Timestamp = float64(in.Float64())
   868  		case "id":
   869  			out.ID = string(in.String())
   870  		case "event":
   871  			out.Name = string(in.String())
   872  		default:
   873  			in.SkipRecursive()
   874  		}
   875  		in.WantComma()
   876  	}
   877  	in.Delim('}')
   878  	if isTopLevel {
   879  		in.Consumed()
   880  	}
   881  }
   882  func easyjson692db02bEncodeGithubComMailgunMailgunGoEvents3(out *jwriter.Writer, in Rejected) {
   883  	out.RawByte('{')
   884  	first := true
   885  	_ = first
   886  	{
   887  		const prefix string = ",\"reject\":"
   888  		if first {
   889  			first = false
   890  			out.RawString(prefix[1:])
   891  		} else {
   892  			out.RawString(prefix)
   893  		}
   894  		easyjson692db02bEncode(out, in.Reject)
   895  	}
   896  	{
   897  		const prefix string = ",\"message\":"
   898  		if first {
   899  			first = false
   900  			out.RawString(prefix[1:])
   901  		} else {
   902  			out.RawString(prefix)
   903  		}
   904  		out.Raw((in.Message).MarshalJSON())
   905  	}
   906  	{
   907  		const prefix string = ",\"storage\":"
   908  		if first {
   909  			first = false
   910  			out.RawString(prefix[1:])
   911  		} else {
   912  			out.RawString(prefix)
   913  		}
   914  		out.Raw((in.Storage).MarshalJSON())
   915  	}
   916  	{
   917  		const prefix string = ",\"flags\":"
   918  		if first {
   919  			first = false
   920  			out.RawString(prefix[1:])
   921  		} else {
   922  			out.RawString(prefix)
   923  		}
   924  		out.Raw((in.Flags).MarshalJSON())
   925  	}
   926  	{
   927  		const prefix string = ",\"tags\":"
   928  		if first {
   929  			first = false
   930  			out.RawString(prefix[1:])
   931  		} else {
   932  			out.RawString(prefix)
   933  		}
   934  		if in.Tags == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
   935  			out.RawString("null")
   936  		} else {
   937  			out.RawByte('[')
   938  			for v25, v26 := range in.Tags {
   939  				if v25 > 0 {
   940  					out.RawByte(',')
   941  				}
   942  				out.String(string(v26))
   943  			}
   944  			out.RawByte(']')
   945  		}
   946  	}
   947  	{
   948  		const prefix string = ",\"campaigns\":"
   949  		if first {
   950  			first = false
   951  			out.RawString(prefix[1:])
   952  		} else {
   953  			out.RawString(prefix)
   954  		}
   955  		if in.Campaigns == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
   956  			out.RawString("null")
   957  		} else {
   958  			out.RawByte('[')
   959  			for v27, v28 := range in.Campaigns {
   960  				if v27 > 0 {
   961  					out.RawByte(',')
   962  				}
   963  				out.Raw((v28).MarshalJSON())
   964  			}
   965  			out.RawByte(']')
   966  		}
   967  	}
   968  	{
   969  		const prefix string = ",\"user-variables\":"
   970  		if first {
   971  			first = false
   972  			out.RawString(prefix[1:])
   973  		} else {
   974  			out.RawString(prefix)
   975  		}
   976  		if in.UserVariables == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
   977  			out.RawString(`null`)
   978  		} else {
   979  			out.RawByte('{')
   980  			v29First := true
   981  			for v29Name, v29Value := range in.UserVariables {
   982  				if v29First {
   983  					v29First = false
   984  				} else {
   985  					out.RawByte(',')
   986  				}
   987  				out.String(string(v29Name))
   988  				out.RawByte(':')
   989  				if m, ok := v29Value.(easyjson.Marshaler); ok {
   990  					m.MarshalEasyJSON(out)
   991  				} else if m, ok := v29Value.(json.Marshaler); ok {
   992  					out.Raw(m.MarshalJSON())
   993  				} else {
   994  					out.Raw(json.Marshal(v29Value))
   995  				}
   996  			}
   997  			out.RawByte('}')
   998  		}
   999  	}
  1000  	{
  1001  		const prefix string = ",\"timestamp\":"
  1002  		if first {
  1003  			first = false
  1004  			out.RawString(prefix[1:])
  1005  		} else {
  1006  			out.RawString(prefix)
  1007  		}
  1008  		out.Float64(float64(in.Timestamp))
  1009  	}
  1010  	{
  1011  		const prefix string = ",\"id\":"
  1012  		if first {
  1013  			first = false
  1014  			out.RawString(prefix[1:])
  1015  		} else {
  1016  			out.RawString(prefix)
  1017  		}
  1018  		out.String(string(in.ID))
  1019  	}
  1020  	{
  1021  		const prefix string = ",\"event\":"
  1022  		if first {
  1023  			first = false
  1024  			out.RawString(prefix[1:])
  1025  		} else {
  1026  			out.RawString(prefix)
  1027  		}
  1028  		out.String(string(in.Name))
  1029  	}
  1030  	out.RawByte('}')
  1031  }
  1032  
  1033  // MarshalJSON supports json.Marshaler interface
  1034  func (v Rejected) MarshalJSON() ([]byte, error) {
  1035  	w := jwriter.Writer{}
  1036  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents3(&w, v)
  1037  	return w.Buffer.BuildBytes(), w.Error
  1038  }
  1039  
  1040  // MarshalEasyJSON supports easyjson.Marshaler interface
  1041  func (v Rejected) MarshalEasyJSON(w *jwriter.Writer) {
  1042  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents3(w, v)
  1043  }
  1044  
  1045  // UnmarshalJSON supports json.Unmarshaler interface
  1046  func (v *Rejected) UnmarshalJSON(data []byte) error {
  1047  	r := jlexer.Lexer{Data: data}
  1048  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents3(&r, v)
  1049  	return r.Error()
  1050  }
  1051  
  1052  // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1053  func (v *Rejected) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1054  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents3(l, v)
  1055  }
  1056  func easyjson692db02bDecode(in *jlexer.Lexer, out *struct {
  1057  	Reason      string `json:"reason"`
  1058  	Description string `json:"description"`
  1059  }) {
  1060  	isTopLevel := in.IsStart()
  1061  	if in.IsNull() {
  1062  		if isTopLevel {
  1063  			in.Consumed()
  1064  		}
  1065  		in.Skip()
  1066  		return
  1067  	}
  1068  	in.Delim('{')
  1069  	for !in.IsDelim('}') {
  1070  		key := in.UnsafeString()
  1071  		in.WantColon()
  1072  		if in.IsNull() {
  1073  			in.Skip()
  1074  			in.WantComma()
  1075  			continue
  1076  		}
  1077  		switch key {
  1078  		case "reason":
  1079  			out.Reason = string(in.String())
  1080  		case "description":
  1081  			out.Description = string(in.String())
  1082  		default:
  1083  			in.SkipRecursive()
  1084  		}
  1085  		in.WantComma()
  1086  	}
  1087  	in.Delim('}')
  1088  	if isTopLevel {
  1089  		in.Consumed()
  1090  	}
  1091  }
  1092  func easyjson692db02bEncode(out *jwriter.Writer, in struct {
  1093  	Reason      string `json:"reason"`
  1094  	Description string `json:"description"`
  1095  }) {
  1096  	out.RawByte('{')
  1097  	first := true
  1098  	_ = first
  1099  	{
  1100  		const prefix string = ",\"reason\":"
  1101  		if first {
  1102  			first = false
  1103  			out.RawString(prefix[1:])
  1104  		} else {
  1105  			out.RawString(prefix)
  1106  		}
  1107  		out.String(string(in.Reason))
  1108  	}
  1109  	{
  1110  		const prefix string = ",\"description\":"
  1111  		if first {
  1112  			first = false
  1113  			out.RawString(prefix[1:])
  1114  		} else {
  1115  			out.RawString(prefix)
  1116  		}
  1117  		out.String(string(in.Description))
  1118  	}
  1119  	out.RawByte('}')
  1120  }
  1121  func easyjson692db02bDecodeGithubComMailgunMailgunGoEvents4(in *jlexer.Lexer, out *Paging) {
  1122  	isTopLevel := in.IsStart()
  1123  	if in.IsNull() {
  1124  		if isTopLevel {
  1125  			in.Consumed()
  1126  		}
  1127  		in.Skip()
  1128  		return
  1129  	}
  1130  	in.Delim('{')
  1131  	for !in.IsDelim('}') {
  1132  		key := in.UnsafeString()
  1133  		in.WantColon()
  1134  		if in.IsNull() {
  1135  			in.Skip()
  1136  			in.WantComma()
  1137  			continue
  1138  		}
  1139  		switch key {
  1140  		case "first":
  1141  			out.First = string(in.String())
  1142  		case "next":
  1143  			out.Next = string(in.String())
  1144  		case "previous":
  1145  			out.Previous = string(in.String())
  1146  		case "last":
  1147  			out.Last = string(in.String())
  1148  		default:
  1149  			in.SkipRecursive()
  1150  		}
  1151  		in.WantComma()
  1152  	}
  1153  	in.Delim('}')
  1154  	if isTopLevel {
  1155  		in.Consumed()
  1156  	}
  1157  }
  1158  func easyjson692db02bEncodeGithubComMailgunMailgunGoEvents4(out *jwriter.Writer, in Paging) {
  1159  	out.RawByte('{')
  1160  	first := true
  1161  	_ = first
  1162  	if in.First != "" {
  1163  		const prefix string = ",\"first\":"
  1164  		if first {
  1165  			first = false
  1166  			out.RawString(prefix[1:])
  1167  		} else {
  1168  			out.RawString(prefix)
  1169  		}
  1170  		out.String(string(in.First))
  1171  	}
  1172  	if in.Next != "" {
  1173  		const prefix string = ",\"next\":"
  1174  		if first {
  1175  			first = false
  1176  			out.RawString(prefix[1:])
  1177  		} else {
  1178  			out.RawString(prefix)
  1179  		}
  1180  		out.String(string(in.Next))
  1181  	}
  1182  	if in.Previous != "" {
  1183  		const prefix string = ",\"previous\":"
  1184  		if first {
  1185  			first = false
  1186  			out.RawString(prefix[1:])
  1187  		} else {
  1188  			out.RawString(prefix)
  1189  		}
  1190  		out.String(string(in.Previous))
  1191  	}
  1192  	if in.Last != "" {
  1193  		const prefix string = ",\"last\":"
  1194  		if first {
  1195  			first = false
  1196  			out.RawString(prefix[1:])
  1197  		} else {
  1198  			out.RawString(prefix)
  1199  		}
  1200  		out.String(string(in.Last))
  1201  	}
  1202  	out.RawByte('}')
  1203  }
  1204  
  1205  // MarshalJSON supports json.Marshaler interface
  1206  func (v Paging) MarshalJSON() ([]byte, error) {
  1207  	w := jwriter.Writer{}
  1208  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents4(&w, v)
  1209  	return w.Buffer.BuildBytes(), w.Error
  1210  }
  1211  
  1212  // MarshalEasyJSON supports easyjson.Marshaler interface
  1213  func (v Paging) MarshalEasyJSON(w *jwriter.Writer) {
  1214  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents4(w, v)
  1215  }
  1216  
  1217  // UnmarshalJSON supports json.Unmarshaler interface
  1218  func (v *Paging) UnmarshalJSON(data []byte) error {
  1219  	r := jlexer.Lexer{Data: data}
  1220  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents4(&r, v)
  1221  	return r.Error()
  1222  }
  1223  
  1224  // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1225  func (v *Paging) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1226  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents4(l, v)
  1227  }
  1228  func easyjson692db02bDecodeGithubComMailgunMailgunGoEvents5(in *jlexer.Lexer, out *Opened) {
  1229  	isTopLevel := in.IsStart()
  1230  	if in.IsNull() {
  1231  		if isTopLevel {
  1232  			in.Consumed()
  1233  		}
  1234  		in.Skip()
  1235  		return
  1236  	}
  1237  	in.Delim('{')
  1238  	for !in.IsDelim('}') {
  1239  		key := in.UnsafeString()
  1240  		in.WantColon()
  1241  		if in.IsNull() {
  1242  			in.Skip()
  1243  			in.WantComma()
  1244  			continue
  1245  		}
  1246  		switch key {
  1247  		case "message":
  1248  			if data := in.Raw(); in.Ok() {
  1249  				in.AddError((out.Message).UnmarshalJSON(data))
  1250  			}
  1251  		case "campaigns":
  1252  			if in.IsNull() {
  1253  				in.Skip()
  1254  				out.Campaigns = nil
  1255  			} else {
  1256  				in.Delim('[')
  1257  				if out.Campaigns == nil {
  1258  					if !in.IsDelim(']') {
  1259  						out.Campaigns = make([]Campaign, 0, 2)
  1260  					} else {
  1261  						out.Campaigns = []Campaign{}
  1262  					}
  1263  				} else {
  1264  					out.Campaigns = (out.Campaigns)[:0]
  1265  				}
  1266  				for !in.IsDelim(']') {
  1267  					var v30 Campaign
  1268  					if data := in.Raw(); in.Ok() {
  1269  						in.AddError((v30).UnmarshalJSON(data))
  1270  					}
  1271  					out.Campaigns = append(out.Campaigns, v30)
  1272  					in.WantComma()
  1273  				}
  1274  				in.Delim(']')
  1275  			}
  1276  		case "mailing-list":
  1277  			if data := in.Raw(); in.Ok() {
  1278  				in.AddError((out.MailingList).UnmarshalJSON(data))
  1279  			}
  1280  		case "recipient":
  1281  			out.Recipient = string(in.String())
  1282  		case "recipient-domain":
  1283  			out.RecipientDomain = string(in.String())
  1284  		case "tags":
  1285  			if in.IsNull() {
  1286  				in.Skip()
  1287  				out.Tags = nil
  1288  			} else {
  1289  				in.Delim('[')
  1290  				if out.Tags == nil {
  1291  					if !in.IsDelim(']') {
  1292  						out.Tags = make([]string, 0, 4)
  1293  					} else {
  1294  						out.Tags = []string{}
  1295  					}
  1296  				} else {
  1297  					out.Tags = (out.Tags)[:0]
  1298  				}
  1299  				for !in.IsDelim(']') {
  1300  					var v31 string
  1301  					v31 = string(in.String())
  1302  					out.Tags = append(out.Tags, v31)
  1303  					in.WantComma()
  1304  				}
  1305  				in.Delim(']')
  1306  			}
  1307  		case "ip":
  1308  			out.IP = string(in.String())
  1309  		case "client-info":
  1310  			if data := in.Raw(); in.Ok() {
  1311  				in.AddError((out.ClientInfo).UnmarshalJSON(data))
  1312  			}
  1313  		case "geolocation":
  1314  			if data := in.Raw(); in.Ok() {
  1315  				in.AddError((out.GeoLocation).UnmarshalJSON(data))
  1316  			}
  1317  		case "user-variables":
  1318  			if in.IsNull() {
  1319  				in.Skip()
  1320  			} else {
  1321  				in.Delim('{')
  1322  				if !in.IsDelim('}') {
  1323  					out.UserVariables = make(map[string]interface{})
  1324  				} else {
  1325  					out.UserVariables = nil
  1326  				}
  1327  				for !in.IsDelim('}') {
  1328  					key := string(in.String())
  1329  					in.WantColon()
  1330  					var v32 interface{}
  1331  					if m, ok := v32.(easyjson.Unmarshaler); ok {
  1332  						m.UnmarshalEasyJSON(in)
  1333  					} else if m, ok := v32.(json.Unmarshaler); ok {
  1334  						_ = m.UnmarshalJSON(in.Raw())
  1335  					} else {
  1336  						v32 = in.Interface()
  1337  					}
  1338  					(out.UserVariables)[key] = v32
  1339  					in.WantComma()
  1340  				}
  1341  				in.Delim('}')
  1342  			}
  1343  		case "timestamp":
  1344  			out.Timestamp = float64(in.Float64())
  1345  		case "id":
  1346  			out.ID = string(in.String())
  1347  		case "event":
  1348  			out.Name = string(in.String())
  1349  		default:
  1350  			in.SkipRecursive()
  1351  		}
  1352  		in.WantComma()
  1353  	}
  1354  	in.Delim('}')
  1355  	if isTopLevel {
  1356  		in.Consumed()
  1357  	}
  1358  }
  1359  func easyjson692db02bEncodeGithubComMailgunMailgunGoEvents5(out *jwriter.Writer, in Opened) {
  1360  	out.RawByte('{')
  1361  	first := true
  1362  	_ = first
  1363  	{
  1364  		const prefix string = ",\"message\":"
  1365  		if first {
  1366  			first = false
  1367  			out.RawString(prefix[1:])
  1368  		} else {
  1369  			out.RawString(prefix)
  1370  		}
  1371  		out.Raw((in.Message).MarshalJSON())
  1372  	}
  1373  	{
  1374  		const prefix string = ",\"campaigns\":"
  1375  		if first {
  1376  			first = false
  1377  			out.RawString(prefix[1:])
  1378  		} else {
  1379  			out.RawString(prefix)
  1380  		}
  1381  		if in.Campaigns == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  1382  			out.RawString("null")
  1383  		} else {
  1384  			out.RawByte('[')
  1385  			for v33, v34 := range in.Campaigns {
  1386  				if v33 > 0 {
  1387  					out.RawByte(',')
  1388  				}
  1389  				out.Raw((v34).MarshalJSON())
  1390  			}
  1391  			out.RawByte(']')
  1392  		}
  1393  	}
  1394  	{
  1395  		const prefix string = ",\"mailing-list\":"
  1396  		if first {
  1397  			first = false
  1398  			out.RawString(prefix[1:])
  1399  		} else {
  1400  			out.RawString(prefix)
  1401  		}
  1402  		out.Raw((in.MailingList).MarshalJSON())
  1403  	}
  1404  	{
  1405  		const prefix string = ",\"recipient\":"
  1406  		if first {
  1407  			first = false
  1408  			out.RawString(prefix[1:])
  1409  		} else {
  1410  			out.RawString(prefix)
  1411  		}
  1412  		out.String(string(in.Recipient))
  1413  	}
  1414  	{
  1415  		const prefix string = ",\"recipient-domain\":"
  1416  		if first {
  1417  			first = false
  1418  			out.RawString(prefix[1:])
  1419  		} else {
  1420  			out.RawString(prefix)
  1421  		}
  1422  		out.String(string(in.RecipientDomain))
  1423  	}
  1424  	{
  1425  		const prefix string = ",\"tags\":"
  1426  		if first {
  1427  			first = false
  1428  			out.RawString(prefix[1:])
  1429  		} else {
  1430  			out.RawString(prefix)
  1431  		}
  1432  		if in.Tags == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  1433  			out.RawString("null")
  1434  		} else {
  1435  			out.RawByte('[')
  1436  			for v35, v36 := range in.Tags {
  1437  				if v35 > 0 {
  1438  					out.RawByte(',')
  1439  				}
  1440  				out.String(string(v36))
  1441  			}
  1442  			out.RawByte(']')
  1443  		}
  1444  	}
  1445  	{
  1446  		const prefix string = ",\"ip\":"
  1447  		if first {
  1448  			first = false
  1449  			out.RawString(prefix[1:])
  1450  		} else {
  1451  			out.RawString(prefix)
  1452  		}
  1453  		out.String(string(in.IP))
  1454  	}
  1455  	{
  1456  		const prefix string = ",\"client-info\":"
  1457  		if first {
  1458  			first = false
  1459  			out.RawString(prefix[1:])
  1460  		} else {
  1461  			out.RawString(prefix)
  1462  		}
  1463  		out.Raw((in.ClientInfo).MarshalJSON())
  1464  	}
  1465  	{
  1466  		const prefix string = ",\"geolocation\":"
  1467  		if first {
  1468  			first = false
  1469  			out.RawString(prefix[1:])
  1470  		} else {
  1471  			out.RawString(prefix)
  1472  		}
  1473  		out.Raw((in.GeoLocation).MarshalJSON())
  1474  	}
  1475  	{
  1476  		const prefix string = ",\"user-variables\":"
  1477  		if first {
  1478  			first = false
  1479  			out.RawString(prefix[1:])
  1480  		} else {
  1481  			out.RawString(prefix)
  1482  		}
  1483  		if in.UserVariables == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
  1484  			out.RawString(`null`)
  1485  		} else {
  1486  			out.RawByte('{')
  1487  			v37First := true
  1488  			for v37Name, v37Value := range in.UserVariables {
  1489  				if v37First {
  1490  					v37First = false
  1491  				} else {
  1492  					out.RawByte(',')
  1493  				}
  1494  				out.String(string(v37Name))
  1495  				out.RawByte(':')
  1496  				if m, ok := v37Value.(easyjson.Marshaler); ok {
  1497  					m.MarshalEasyJSON(out)
  1498  				} else if m, ok := v37Value.(json.Marshaler); ok {
  1499  					out.Raw(m.MarshalJSON())
  1500  				} else {
  1501  					out.Raw(json.Marshal(v37Value))
  1502  				}
  1503  			}
  1504  			out.RawByte('}')
  1505  		}
  1506  	}
  1507  	{
  1508  		const prefix string = ",\"timestamp\":"
  1509  		if first {
  1510  			first = false
  1511  			out.RawString(prefix[1:])
  1512  		} else {
  1513  			out.RawString(prefix)
  1514  		}
  1515  		out.Float64(float64(in.Timestamp))
  1516  	}
  1517  	{
  1518  		const prefix string = ",\"id\":"
  1519  		if first {
  1520  			first = false
  1521  			out.RawString(prefix[1:])
  1522  		} else {
  1523  			out.RawString(prefix)
  1524  		}
  1525  		out.String(string(in.ID))
  1526  	}
  1527  	{
  1528  		const prefix string = ",\"event\":"
  1529  		if first {
  1530  			first = false
  1531  			out.RawString(prefix[1:])
  1532  		} else {
  1533  			out.RawString(prefix)
  1534  		}
  1535  		out.String(string(in.Name))
  1536  	}
  1537  	out.RawByte('}')
  1538  }
  1539  
  1540  // MarshalJSON supports json.Marshaler interface
  1541  func (v Opened) MarshalJSON() ([]byte, error) {
  1542  	w := jwriter.Writer{}
  1543  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents5(&w, v)
  1544  	return w.Buffer.BuildBytes(), w.Error
  1545  }
  1546  
  1547  // MarshalEasyJSON supports easyjson.Marshaler interface
  1548  func (v Opened) MarshalEasyJSON(w *jwriter.Writer) {
  1549  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents5(w, v)
  1550  }
  1551  
  1552  // UnmarshalJSON supports json.Unmarshaler interface
  1553  func (v *Opened) UnmarshalJSON(data []byte) error {
  1554  	r := jlexer.Lexer{Data: data}
  1555  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents5(&r, v)
  1556  	return r.Error()
  1557  }
  1558  
  1559  // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1560  func (v *Opened) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1561  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents5(l, v)
  1562  }
  1563  func easyjson692db02bDecodeGithubComMailgunMailgunGoEvents6(in *jlexer.Lexer, out *MailingListMember) {
  1564  	isTopLevel := in.IsStart()
  1565  	if in.IsNull() {
  1566  		if isTopLevel {
  1567  			in.Consumed()
  1568  		}
  1569  		in.Skip()
  1570  		return
  1571  	}
  1572  	in.Delim('{')
  1573  	for !in.IsDelim('}') {
  1574  		key := in.UnsafeString()
  1575  		in.WantColon()
  1576  		if in.IsNull() {
  1577  			in.Skip()
  1578  			in.WantComma()
  1579  			continue
  1580  		}
  1581  		switch key {
  1582  		case "Subscribed":
  1583  			out.Subscribed = bool(in.Bool())
  1584  		case "Address":
  1585  			out.Address = string(in.String())
  1586  		case "Name":
  1587  			out.Name = string(in.String())
  1588  		case "Vars":
  1589  			if in.IsNull() {
  1590  				in.Skip()
  1591  				out.Vars = nil
  1592  			} else {
  1593  				in.Delim('[')
  1594  				if out.Vars == nil {
  1595  					if !in.IsDelim(']') {
  1596  						out.Vars = make([]string, 0, 4)
  1597  					} else {
  1598  						out.Vars = []string{}
  1599  					}
  1600  				} else {
  1601  					out.Vars = (out.Vars)[:0]
  1602  				}
  1603  				for !in.IsDelim(']') {
  1604  					var v38 string
  1605  					v38 = string(in.String())
  1606  					out.Vars = append(out.Vars, v38)
  1607  					in.WantComma()
  1608  				}
  1609  				in.Delim(']')
  1610  			}
  1611  		default:
  1612  			in.SkipRecursive()
  1613  		}
  1614  		in.WantComma()
  1615  	}
  1616  	in.Delim('}')
  1617  	if isTopLevel {
  1618  		in.Consumed()
  1619  	}
  1620  }
  1621  func easyjson692db02bEncodeGithubComMailgunMailgunGoEvents6(out *jwriter.Writer, in MailingListMember) {
  1622  	out.RawByte('{')
  1623  	first := true
  1624  	_ = first
  1625  	{
  1626  		const prefix string = ",\"Subscribed\":"
  1627  		if first {
  1628  			first = false
  1629  			out.RawString(prefix[1:])
  1630  		} else {
  1631  			out.RawString(prefix)
  1632  		}
  1633  		out.Bool(bool(in.Subscribed))
  1634  	}
  1635  	{
  1636  		const prefix string = ",\"Address\":"
  1637  		if first {
  1638  			first = false
  1639  			out.RawString(prefix[1:])
  1640  		} else {
  1641  			out.RawString(prefix)
  1642  		}
  1643  		out.String(string(in.Address))
  1644  	}
  1645  	{
  1646  		const prefix string = ",\"Name\":"
  1647  		if first {
  1648  			first = false
  1649  			out.RawString(prefix[1:])
  1650  		} else {
  1651  			out.RawString(prefix)
  1652  		}
  1653  		out.String(string(in.Name))
  1654  	}
  1655  	{
  1656  		const prefix string = ",\"Vars\":"
  1657  		if first {
  1658  			first = false
  1659  			out.RawString(prefix[1:])
  1660  		} else {
  1661  			out.RawString(prefix)
  1662  		}
  1663  		if in.Vars == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  1664  			out.RawString("null")
  1665  		} else {
  1666  			out.RawByte('[')
  1667  			for v39, v40 := range in.Vars {
  1668  				if v39 > 0 {
  1669  					out.RawByte(',')
  1670  				}
  1671  				out.String(string(v40))
  1672  			}
  1673  			out.RawByte(']')
  1674  		}
  1675  	}
  1676  	out.RawByte('}')
  1677  }
  1678  
  1679  // MarshalJSON supports json.Marshaler interface
  1680  func (v MailingListMember) MarshalJSON() ([]byte, error) {
  1681  	w := jwriter.Writer{}
  1682  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents6(&w, v)
  1683  	return w.Buffer.BuildBytes(), w.Error
  1684  }
  1685  
  1686  // MarshalEasyJSON supports easyjson.Marshaler interface
  1687  func (v MailingListMember) MarshalEasyJSON(w *jwriter.Writer) {
  1688  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents6(w, v)
  1689  }
  1690  
  1691  // UnmarshalJSON supports json.Unmarshaler interface
  1692  func (v *MailingListMember) UnmarshalJSON(data []byte) error {
  1693  	r := jlexer.Lexer{Data: data}
  1694  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents6(&r, v)
  1695  	return r.Error()
  1696  }
  1697  
  1698  // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1699  func (v *MailingListMember) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1700  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents6(l, v)
  1701  }
  1702  func easyjson692db02bDecodeGithubComMailgunMailgunGoEvents7(in *jlexer.Lexer, out *MailingListError) {
  1703  	isTopLevel := in.IsStart()
  1704  	if in.IsNull() {
  1705  		if isTopLevel {
  1706  			in.Consumed()
  1707  		}
  1708  		in.Skip()
  1709  		return
  1710  	}
  1711  	in.Delim('{')
  1712  	for !in.IsDelim('}') {
  1713  		key := in.UnsafeString()
  1714  		in.WantColon()
  1715  		if in.IsNull() {
  1716  			in.Skip()
  1717  			in.WantComma()
  1718  			continue
  1719  		}
  1720  		switch key {
  1721  		case "Message":
  1722  			out.Message = string(in.String())
  1723  		default:
  1724  			in.SkipRecursive()
  1725  		}
  1726  		in.WantComma()
  1727  	}
  1728  	in.Delim('}')
  1729  	if isTopLevel {
  1730  		in.Consumed()
  1731  	}
  1732  }
  1733  func easyjson692db02bEncodeGithubComMailgunMailgunGoEvents7(out *jwriter.Writer, in MailingListError) {
  1734  	out.RawByte('{')
  1735  	first := true
  1736  	_ = first
  1737  	{
  1738  		const prefix string = ",\"Message\":"
  1739  		if first {
  1740  			first = false
  1741  			out.RawString(prefix[1:])
  1742  		} else {
  1743  			out.RawString(prefix)
  1744  		}
  1745  		out.String(string(in.Message))
  1746  	}
  1747  	out.RawByte('}')
  1748  }
  1749  
  1750  // MarshalJSON supports json.Marshaler interface
  1751  func (v MailingListError) MarshalJSON() ([]byte, error) {
  1752  	w := jwriter.Writer{}
  1753  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents7(&w, v)
  1754  	return w.Buffer.BuildBytes(), w.Error
  1755  }
  1756  
  1757  // MarshalEasyJSON supports easyjson.Marshaler interface
  1758  func (v MailingListError) MarshalEasyJSON(w *jwriter.Writer) {
  1759  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents7(w, v)
  1760  }
  1761  
  1762  // UnmarshalJSON supports json.Unmarshaler interface
  1763  func (v *MailingListError) UnmarshalJSON(data []byte) error {
  1764  	r := jlexer.Lexer{Data: data}
  1765  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents7(&r, v)
  1766  	return r.Error()
  1767  }
  1768  
  1769  // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1770  func (v *MailingListError) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1771  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents7(l, v)
  1772  }
  1773  func easyjson692db02bDecodeGithubComMailgunMailgunGoEvents8(in *jlexer.Lexer, out *ListUploaded) {
  1774  	isTopLevel := in.IsStart()
  1775  	if in.IsNull() {
  1776  		if isTopLevel {
  1777  			in.Consumed()
  1778  		}
  1779  		in.Skip()
  1780  		return
  1781  	}
  1782  	in.Delim('{')
  1783  	for !in.IsDelim('}') {
  1784  		key := in.UnsafeString()
  1785  		in.WantColon()
  1786  		if in.IsNull() {
  1787  			in.Skip()
  1788  			in.WantComma()
  1789  			continue
  1790  		}
  1791  		switch key {
  1792  		case "mailing-list":
  1793  			if data := in.Raw(); in.Ok() {
  1794  				in.AddError((out.MailingList).UnmarshalJSON(data))
  1795  			}
  1796  		case "is-upsert":
  1797  			out.IsUpsert = bool(in.Bool())
  1798  		case "format":
  1799  			out.Format = string(in.String())
  1800  		case "upserted-count":
  1801  			out.UpsertedCount = int(in.Int())
  1802  		case "failed-count":
  1803  			out.FailedCount = int(in.Int())
  1804  		case "member":
  1805  			if data := in.Raw(); in.Ok() {
  1806  				in.AddError((out.Member).UnmarshalJSON(data))
  1807  			}
  1808  		case "subscribed":
  1809  			out.Subscribed = bool(in.Bool())
  1810  		case "task-id":
  1811  			out.TaskID = string(in.String())
  1812  		case "timestamp":
  1813  			out.Timestamp = float64(in.Float64())
  1814  		case "id":
  1815  			out.ID = string(in.String())
  1816  		case "event":
  1817  			out.Name = string(in.String())
  1818  		default:
  1819  			in.SkipRecursive()
  1820  		}
  1821  		in.WantComma()
  1822  	}
  1823  	in.Delim('}')
  1824  	if isTopLevel {
  1825  		in.Consumed()
  1826  	}
  1827  }
  1828  func easyjson692db02bEncodeGithubComMailgunMailgunGoEvents8(out *jwriter.Writer, in ListUploaded) {
  1829  	out.RawByte('{')
  1830  	first := true
  1831  	_ = first
  1832  	{
  1833  		const prefix string = ",\"mailing-list\":"
  1834  		if first {
  1835  			first = false
  1836  			out.RawString(prefix[1:])
  1837  		} else {
  1838  			out.RawString(prefix)
  1839  		}
  1840  		out.Raw((in.MailingList).MarshalJSON())
  1841  	}
  1842  	{
  1843  		const prefix string = ",\"is-upsert\":"
  1844  		if first {
  1845  			first = false
  1846  			out.RawString(prefix[1:])
  1847  		} else {
  1848  			out.RawString(prefix)
  1849  		}
  1850  		out.Bool(bool(in.IsUpsert))
  1851  	}
  1852  	{
  1853  		const prefix string = ",\"format\":"
  1854  		if first {
  1855  			first = false
  1856  			out.RawString(prefix[1:])
  1857  		} else {
  1858  			out.RawString(prefix)
  1859  		}
  1860  		out.String(string(in.Format))
  1861  	}
  1862  	{
  1863  		const prefix string = ",\"upserted-count\":"
  1864  		if first {
  1865  			first = false
  1866  			out.RawString(prefix[1:])
  1867  		} else {
  1868  			out.RawString(prefix)
  1869  		}
  1870  		out.Int(int(in.UpsertedCount))
  1871  	}
  1872  	{
  1873  		const prefix string = ",\"failed-count\":"
  1874  		if first {
  1875  			first = false
  1876  			out.RawString(prefix[1:])
  1877  		} else {
  1878  			out.RawString(prefix)
  1879  		}
  1880  		out.Int(int(in.FailedCount))
  1881  	}
  1882  	{
  1883  		const prefix string = ",\"member\":"
  1884  		if first {
  1885  			first = false
  1886  			out.RawString(prefix[1:])
  1887  		} else {
  1888  			out.RawString(prefix)
  1889  		}
  1890  		out.Raw((in.Member).MarshalJSON())
  1891  	}
  1892  	{
  1893  		const prefix string = ",\"subscribed\":"
  1894  		if first {
  1895  			first = false
  1896  			out.RawString(prefix[1:])
  1897  		} else {
  1898  			out.RawString(prefix)
  1899  		}
  1900  		out.Bool(bool(in.Subscribed))
  1901  	}
  1902  	{
  1903  		const prefix string = ",\"task-id\":"
  1904  		if first {
  1905  			first = false
  1906  			out.RawString(prefix[1:])
  1907  		} else {
  1908  			out.RawString(prefix)
  1909  		}
  1910  		out.String(string(in.TaskID))
  1911  	}
  1912  	{
  1913  		const prefix string = ",\"timestamp\":"
  1914  		if first {
  1915  			first = false
  1916  			out.RawString(prefix[1:])
  1917  		} else {
  1918  			out.RawString(prefix)
  1919  		}
  1920  		out.Float64(float64(in.Timestamp))
  1921  	}
  1922  	{
  1923  		const prefix string = ",\"id\":"
  1924  		if first {
  1925  			first = false
  1926  			out.RawString(prefix[1:])
  1927  		} else {
  1928  			out.RawString(prefix)
  1929  		}
  1930  		out.String(string(in.ID))
  1931  	}
  1932  	{
  1933  		const prefix string = ",\"event\":"
  1934  		if first {
  1935  			first = false
  1936  			out.RawString(prefix[1:])
  1937  		} else {
  1938  			out.RawString(prefix)
  1939  		}
  1940  		out.String(string(in.Name))
  1941  	}
  1942  	out.RawByte('}')
  1943  }
  1944  
  1945  // MarshalJSON supports json.Marshaler interface
  1946  func (v ListUploaded) MarshalJSON() ([]byte, error) {
  1947  	w := jwriter.Writer{}
  1948  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents8(&w, v)
  1949  	return w.Buffer.BuildBytes(), w.Error
  1950  }
  1951  
  1952  // MarshalEasyJSON supports easyjson.Marshaler interface
  1953  func (v ListUploaded) MarshalEasyJSON(w *jwriter.Writer) {
  1954  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents8(w, v)
  1955  }
  1956  
  1957  // UnmarshalJSON supports json.Unmarshaler interface
  1958  func (v *ListUploaded) UnmarshalJSON(data []byte) error {
  1959  	r := jlexer.Lexer{Data: data}
  1960  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents8(&r, v)
  1961  	return r.Error()
  1962  }
  1963  
  1964  // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1965  func (v *ListUploaded) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1966  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents8(l, v)
  1967  }
  1968  func easyjson692db02bDecodeGithubComMailgunMailgunGoEvents9(in *jlexer.Lexer, out *ListMemberUploaded) {
  1969  	isTopLevel := in.IsStart()
  1970  	if in.IsNull() {
  1971  		if isTopLevel {
  1972  			in.Consumed()
  1973  		}
  1974  		in.Skip()
  1975  		return
  1976  	}
  1977  	in.Delim('{')
  1978  	for !in.IsDelim('}') {
  1979  		key := in.UnsafeString()
  1980  		in.WantColon()
  1981  		if in.IsNull() {
  1982  			in.Skip()
  1983  			in.WantComma()
  1984  			continue
  1985  		}
  1986  		switch key {
  1987  		case "mailing-list":
  1988  			if data := in.Raw(); in.Ok() {
  1989  				in.AddError((out.MailingList).UnmarshalJSON(data))
  1990  			}
  1991  		case "member":
  1992  			if data := in.Raw(); in.Ok() {
  1993  				in.AddError((out.Member).UnmarshalJSON(data))
  1994  			}
  1995  		case "task-id":
  1996  			out.TaskID = string(in.String())
  1997  		case "timestamp":
  1998  			out.Timestamp = float64(in.Float64())
  1999  		case "id":
  2000  			out.ID = string(in.String())
  2001  		case "event":
  2002  			out.Name = string(in.String())
  2003  		default:
  2004  			in.SkipRecursive()
  2005  		}
  2006  		in.WantComma()
  2007  	}
  2008  	in.Delim('}')
  2009  	if isTopLevel {
  2010  		in.Consumed()
  2011  	}
  2012  }
  2013  func easyjson692db02bEncodeGithubComMailgunMailgunGoEvents9(out *jwriter.Writer, in ListMemberUploaded) {
  2014  	out.RawByte('{')
  2015  	first := true
  2016  	_ = first
  2017  	{
  2018  		const prefix string = ",\"mailing-list\":"
  2019  		if first {
  2020  			first = false
  2021  			out.RawString(prefix[1:])
  2022  		} else {
  2023  			out.RawString(prefix)
  2024  		}
  2025  		out.Raw((in.MailingList).MarshalJSON())
  2026  	}
  2027  	{
  2028  		const prefix string = ",\"member\":"
  2029  		if first {
  2030  			first = false
  2031  			out.RawString(prefix[1:])
  2032  		} else {
  2033  			out.RawString(prefix)
  2034  		}
  2035  		out.Raw((in.Member).MarshalJSON())
  2036  	}
  2037  	{
  2038  		const prefix string = ",\"task-id\":"
  2039  		if first {
  2040  			first = false
  2041  			out.RawString(prefix[1:])
  2042  		} else {
  2043  			out.RawString(prefix)
  2044  		}
  2045  		out.String(string(in.TaskID))
  2046  	}
  2047  	{
  2048  		const prefix string = ",\"timestamp\":"
  2049  		if first {
  2050  			first = false
  2051  			out.RawString(prefix[1:])
  2052  		} else {
  2053  			out.RawString(prefix)
  2054  		}
  2055  		out.Float64(float64(in.Timestamp))
  2056  	}
  2057  	{
  2058  		const prefix string = ",\"id\":"
  2059  		if first {
  2060  			first = false
  2061  			out.RawString(prefix[1:])
  2062  		} else {
  2063  			out.RawString(prefix)
  2064  		}
  2065  		out.String(string(in.ID))
  2066  	}
  2067  	{
  2068  		const prefix string = ",\"event\":"
  2069  		if first {
  2070  			first = false
  2071  			out.RawString(prefix[1:])
  2072  		} else {
  2073  			out.RawString(prefix)
  2074  		}
  2075  		out.String(string(in.Name))
  2076  	}
  2077  	out.RawByte('}')
  2078  }
  2079  
  2080  // MarshalJSON supports json.Marshaler interface
  2081  func (v ListMemberUploaded) MarshalJSON() ([]byte, error) {
  2082  	w := jwriter.Writer{}
  2083  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents9(&w, v)
  2084  	return w.Buffer.BuildBytes(), w.Error
  2085  }
  2086  
  2087  // MarshalEasyJSON supports easyjson.Marshaler interface
  2088  func (v ListMemberUploaded) MarshalEasyJSON(w *jwriter.Writer) {
  2089  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents9(w, v)
  2090  }
  2091  
  2092  // UnmarshalJSON supports json.Unmarshaler interface
  2093  func (v *ListMemberUploaded) UnmarshalJSON(data []byte) error {
  2094  	r := jlexer.Lexer{Data: data}
  2095  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents9(&r, v)
  2096  	return r.Error()
  2097  }
  2098  
  2099  // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2100  func (v *ListMemberUploaded) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2101  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents9(l, v)
  2102  }
  2103  func easyjson692db02bDecodeGithubComMailgunMailgunGoEvents10(in *jlexer.Lexer, out *ListMemberUploadError) {
  2104  	isTopLevel := in.IsStart()
  2105  	if in.IsNull() {
  2106  		if isTopLevel {
  2107  			in.Consumed()
  2108  		}
  2109  		in.Skip()
  2110  		return
  2111  	}
  2112  	in.Delim('{')
  2113  	for !in.IsDelim('}') {
  2114  		key := in.UnsafeString()
  2115  		in.WantColon()
  2116  		if in.IsNull() {
  2117  			in.Skip()
  2118  			in.WantComma()
  2119  			continue
  2120  		}
  2121  		switch key {
  2122  		case "mailing-list":
  2123  			if data := in.Raw(); in.Ok() {
  2124  				in.AddError((out.MailingList).UnmarshalJSON(data))
  2125  			}
  2126  		case "task-id":
  2127  			out.TaskID = string(in.String())
  2128  		case "format":
  2129  			out.Format = string(in.String())
  2130  		case "member-description":
  2131  			out.MemberDescription = string(in.String())
  2132  		case "error":
  2133  			if data := in.Raw(); in.Ok() {
  2134  				in.AddError((out.Error).UnmarshalJSON(data))
  2135  			}
  2136  		case "timestamp":
  2137  			out.Timestamp = float64(in.Float64())
  2138  		case "id":
  2139  			out.ID = string(in.String())
  2140  		case "event":
  2141  			out.Name = string(in.String())
  2142  		default:
  2143  			in.SkipRecursive()
  2144  		}
  2145  		in.WantComma()
  2146  	}
  2147  	in.Delim('}')
  2148  	if isTopLevel {
  2149  		in.Consumed()
  2150  	}
  2151  }
  2152  func easyjson692db02bEncodeGithubComMailgunMailgunGoEvents10(out *jwriter.Writer, in ListMemberUploadError) {
  2153  	out.RawByte('{')
  2154  	first := true
  2155  	_ = first
  2156  	{
  2157  		const prefix string = ",\"mailing-list\":"
  2158  		if first {
  2159  			first = false
  2160  			out.RawString(prefix[1:])
  2161  		} else {
  2162  			out.RawString(prefix)
  2163  		}
  2164  		out.Raw((in.MailingList).MarshalJSON())
  2165  	}
  2166  	{
  2167  		const prefix string = ",\"task-id\":"
  2168  		if first {
  2169  			first = false
  2170  			out.RawString(prefix[1:])
  2171  		} else {
  2172  			out.RawString(prefix)
  2173  		}
  2174  		out.String(string(in.TaskID))
  2175  	}
  2176  	{
  2177  		const prefix string = ",\"format\":"
  2178  		if first {
  2179  			first = false
  2180  			out.RawString(prefix[1:])
  2181  		} else {
  2182  			out.RawString(prefix)
  2183  		}
  2184  		out.String(string(in.Format))
  2185  	}
  2186  	{
  2187  		const prefix string = ",\"member-description\":"
  2188  		if first {
  2189  			first = false
  2190  			out.RawString(prefix[1:])
  2191  		} else {
  2192  			out.RawString(prefix)
  2193  		}
  2194  		out.String(string(in.MemberDescription))
  2195  	}
  2196  	{
  2197  		const prefix string = ",\"error\":"
  2198  		if first {
  2199  			first = false
  2200  			out.RawString(prefix[1:])
  2201  		} else {
  2202  			out.RawString(prefix)
  2203  		}
  2204  		out.Raw((in.Error).MarshalJSON())
  2205  	}
  2206  	{
  2207  		const prefix string = ",\"timestamp\":"
  2208  		if first {
  2209  			first = false
  2210  			out.RawString(prefix[1:])
  2211  		} else {
  2212  			out.RawString(prefix)
  2213  		}
  2214  		out.Float64(float64(in.Timestamp))
  2215  	}
  2216  	{
  2217  		const prefix string = ",\"id\":"
  2218  		if first {
  2219  			first = false
  2220  			out.RawString(prefix[1:])
  2221  		} else {
  2222  			out.RawString(prefix)
  2223  		}
  2224  		out.String(string(in.ID))
  2225  	}
  2226  	{
  2227  		const prefix string = ",\"event\":"
  2228  		if first {
  2229  			first = false
  2230  			out.RawString(prefix[1:])
  2231  		} else {
  2232  			out.RawString(prefix)
  2233  		}
  2234  		out.String(string(in.Name))
  2235  	}
  2236  	out.RawByte('}')
  2237  }
  2238  
  2239  // MarshalJSON supports json.Marshaler interface
  2240  func (v ListMemberUploadError) MarshalJSON() ([]byte, error) {
  2241  	w := jwriter.Writer{}
  2242  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents10(&w, v)
  2243  	return w.Buffer.BuildBytes(), w.Error
  2244  }
  2245  
  2246  // MarshalEasyJSON supports easyjson.Marshaler interface
  2247  func (v ListMemberUploadError) MarshalEasyJSON(w *jwriter.Writer) {
  2248  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents10(w, v)
  2249  }
  2250  
  2251  // UnmarshalJSON supports json.Unmarshaler interface
  2252  func (v *ListMemberUploadError) UnmarshalJSON(data []byte) error {
  2253  	r := jlexer.Lexer{Data: data}
  2254  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents10(&r, v)
  2255  	return r.Error()
  2256  }
  2257  
  2258  // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2259  func (v *ListMemberUploadError) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2260  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents10(l, v)
  2261  }
  2262  func easyjson692db02bDecodeGithubComMailgunMailgunGoEvents11(in *jlexer.Lexer, out *Generic) {
  2263  	isTopLevel := in.IsStart()
  2264  	if in.IsNull() {
  2265  		if isTopLevel {
  2266  			in.Consumed()
  2267  		}
  2268  		in.Skip()
  2269  		return
  2270  	}
  2271  	in.Delim('{')
  2272  	for !in.IsDelim('}') {
  2273  		key := in.UnsafeString()
  2274  		in.WantColon()
  2275  		if in.IsNull() {
  2276  			in.Skip()
  2277  			in.WantComma()
  2278  			continue
  2279  		}
  2280  		switch key {
  2281  		case "timestamp":
  2282  			out.Timestamp = float64(in.Float64())
  2283  		case "id":
  2284  			out.ID = string(in.String())
  2285  		case "event":
  2286  			out.Name = string(in.String())
  2287  		default:
  2288  			in.SkipRecursive()
  2289  		}
  2290  		in.WantComma()
  2291  	}
  2292  	in.Delim('}')
  2293  	if isTopLevel {
  2294  		in.Consumed()
  2295  	}
  2296  }
  2297  func easyjson692db02bEncodeGithubComMailgunMailgunGoEvents11(out *jwriter.Writer, in Generic) {
  2298  	out.RawByte('{')
  2299  	first := true
  2300  	_ = first
  2301  	{
  2302  		const prefix string = ",\"timestamp\":"
  2303  		if first {
  2304  			first = false
  2305  			out.RawString(prefix[1:])
  2306  		} else {
  2307  			out.RawString(prefix)
  2308  		}
  2309  		out.Float64(float64(in.Timestamp))
  2310  	}
  2311  	{
  2312  		const prefix string = ",\"id\":"
  2313  		if first {
  2314  			first = false
  2315  			out.RawString(prefix[1:])
  2316  		} else {
  2317  			out.RawString(prefix)
  2318  		}
  2319  		out.String(string(in.ID))
  2320  	}
  2321  	{
  2322  		const prefix string = ",\"event\":"
  2323  		if first {
  2324  			first = false
  2325  			out.RawString(prefix[1:])
  2326  		} else {
  2327  			out.RawString(prefix)
  2328  		}
  2329  		out.String(string(in.Name))
  2330  	}
  2331  	out.RawByte('}')
  2332  }
  2333  
  2334  // MarshalJSON supports json.Marshaler interface
  2335  func (v Generic) MarshalJSON() ([]byte, error) {
  2336  	w := jwriter.Writer{}
  2337  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents11(&w, v)
  2338  	return w.Buffer.BuildBytes(), w.Error
  2339  }
  2340  
  2341  // MarshalEasyJSON supports easyjson.Marshaler interface
  2342  func (v Generic) MarshalEasyJSON(w *jwriter.Writer) {
  2343  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents11(w, v)
  2344  }
  2345  
  2346  // UnmarshalJSON supports json.Unmarshaler interface
  2347  func (v *Generic) UnmarshalJSON(data []byte) error {
  2348  	r := jlexer.Lexer{Data: data}
  2349  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents11(&r, v)
  2350  	return r.Error()
  2351  }
  2352  
  2353  // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2354  func (v *Generic) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2355  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents11(l, v)
  2356  }
  2357  func easyjson692db02bDecodeGithubComMailgunMailgunGoEvents12(in *jlexer.Lexer, out *Failed) {
  2358  	isTopLevel := in.IsStart()
  2359  	if in.IsNull() {
  2360  		if isTopLevel {
  2361  			in.Consumed()
  2362  		}
  2363  		in.Skip()
  2364  		return
  2365  	}
  2366  	in.Delim('{')
  2367  	for !in.IsDelim('}') {
  2368  		key := in.UnsafeString()
  2369  		in.WantColon()
  2370  		if in.IsNull() {
  2371  			in.Skip()
  2372  			in.WantComma()
  2373  			continue
  2374  		}
  2375  		switch key {
  2376  		case "envelope":
  2377  			if data := in.Raw(); in.Ok() {
  2378  				in.AddError((out.Envelope).UnmarshalJSON(data))
  2379  			}
  2380  		case "message":
  2381  			if data := in.Raw(); in.Ok() {
  2382  				in.AddError((out.Message).UnmarshalJSON(data))
  2383  			}
  2384  		case "flags":
  2385  			if data := in.Raw(); in.Ok() {
  2386  				in.AddError((out.Flags).UnmarshalJSON(data))
  2387  			}
  2388  		case "recipient":
  2389  			out.Recipient = string(in.String())
  2390  		case "recipient-domain":
  2391  			out.RecipientDomain = string(in.String())
  2392  		case "method":
  2393  			out.Method = string(in.String())
  2394  		case "tags":
  2395  			if in.IsNull() {
  2396  				in.Skip()
  2397  				out.Tags = nil
  2398  			} else {
  2399  				in.Delim('[')
  2400  				if out.Tags == nil {
  2401  					if !in.IsDelim(']') {
  2402  						out.Tags = make([]string, 0, 4)
  2403  					} else {
  2404  						out.Tags = []string{}
  2405  					}
  2406  				} else {
  2407  					out.Tags = (out.Tags)[:0]
  2408  				}
  2409  				for !in.IsDelim(']') {
  2410  					var v41 string
  2411  					v41 = string(in.String())
  2412  					out.Tags = append(out.Tags, v41)
  2413  					in.WantComma()
  2414  				}
  2415  				in.Delim(']')
  2416  			}
  2417  		case "campaigns":
  2418  			if in.IsNull() {
  2419  				in.Skip()
  2420  				out.Campaigns = nil
  2421  			} else {
  2422  				in.Delim('[')
  2423  				if out.Campaigns == nil {
  2424  					if !in.IsDelim(']') {
  2425  						out.Campaigns = make([]Campaign, 0, 2)
  2426  					} else {
  2427  						out.Campaigns = []Campaign{}
  2428  					}
  2429  				} else {
  2430  					out.Campaigns = (out.Campaigns)[:0]
  2431  				}
  2432  				for !in.IsDelim(']') {
  2433  					var v42 Campaign
  2434  					if data := in.Raw(); in.Ok() {
  2435  						in.AddError((v42).UnmarshalJSON(data))
  2436  					}
  2437  					out.Campaigns = append(out.Campaigns, v42)
  2438  					in.WantComma()
  2439  				}
  2440  				in.Delim(']')
  2441  			}
  2442  		case "delivery-status":
  2443  			if data := in.Raw(); in.Ok() {
  2444  				in.AddError((out.DeliveryStatus).UnmarshalJSON(data))
  2445  			}
  2446  		case "severity":
  2447  			out.Severity = string(in.String())
  2448  		case "reason":
  2449  			out.Reason = string(in.String())
  2450  		case "user-variables":
  2451  			if in.IsNull() {
  2452  				in.Skip()
  2453  			} else {
  2454  				in.Delim('{')
  2455  				if !in.IsDelim('}') {
  2456  					out.UserVariables = make(map[string]interface{})
  2457  				} else {
  2458  					out.UserVariables = nil
  2459  				}
  2460  				for !in.IsDelim('}') {
  2461  					key := string(in.String())
  2462  					in.WantColon()
  2463  					var v43 interface{}
  2464  					if m, ok := v43.(easyjson.Unmarshaler); ok {
  2465  						m.UnmarshalEasyJSON(in)
  2466  					} else if m, ok := v43.(json.Unmarshaler); ok {
  2467  						_ = m.UnmarshalJSON(in.Raw())
  2468  					} else {
  2469  						v43 = in.Interface()
  2470  					}
  2471  					(out.UserVariables)[key] = v43
  2472  					in.WantComma()
  2473  				}
  2474  				in.Delim('}')
  2475  			}
  2476  		case "timestamp":
  2477  			out.Timestamp = float64(in.Float64())
  2478  		case "id":
  2479  			out.ID = string(in.String())
  2480  		case "event":
  2481  			out.Name = string(in.String())
  2482  		default:
  2483  			in.SkipRecursive()
  2484  		}
  2485  		in.WantComma()
  2486  	}
  2487  	in.Delim('}')
  2488  	if isTopLevel {
  2489  		in.Consumed()
  2490  	}
  2491  }
  2492  func easyjson692db02bEncodeGithubComMailgunMailgunGoEvents12(out *jwriter.Writer, in Failed) {
  2493  	out.RawByte('{')
  2494  	first := true
  2495  	_ = first
  2496  	{
  2497  		const prefix string = ",\"envelope\":"
  2498  		if first {
  2499  			first = false
  2500  			out.RawString(prefix[1:])
  2501  		} else {
  2502  			out.RawString(prefix)
  2503  		}
  2504  		out.Raw((in.Envelope).MarshalJSON())
  2505  	}
  2506  	{
  2507  		const prefix string = ",\"message\":"
  2508  		if first {
  2509  			first = false
  2510  			out.RawString(prefix[1:])
  2511  		} else {
  2512  			out.RawString(prefix)
  2513  		}
  2514  		out.Raw((in.Message).MarshalJSON())
  2515  	}
  2516  	{
  2517  		const prefix string = ",\"flags\":"
  2518  		if first {
  2519  			first = false
  2520  			out.RawString(prefix[1:])
  2521  		} else {
  2522  			out.RawString(prefix)
  2523  		}
  2524  		out.Raw((in.Flags).MarshalJSON())
  2525  	}
  2526  	{
  2527  		const prefix string = ",\"recipient\":"
  2528  		if first {
  2529  			first = false
  2530  			out.RawString(prefix[1:])
  2531  		} else {
  2532  			out.RawString(prefix)
  2533  		}
  2534  		out.String(string(in.Recipient))
  2535  	}
  2536  	{
  2537  		const prefix string = ",\"recipient-domain\":"
  2538  		if first {
  2539  			first = false
  2540  			out.RawString(prefix[1:])
  2541  		} else {
  2542  			out.RawString(prefix)
  2543  		}
  2544  		out.String(string(in.RecipientDomain))
  2545  	}
  2546  	{
  2547  		const prefix string = ",\"method\":"
  2548  		if first {
  2549  			first = false
  2550  			out.RawString(prefix[1:])
  2551  		} else {
  2552  			out.RawString(prefix)
  2553  		}
  2554  		out.String(string(in.Method))
  2555  	}
  2556  	{
  2557  		const prefix string = ",\"tags\":"
  2558  		if first {
  2559  			first = false
  2560  			out.RawString(prefix[1:])
  2561  		} else {
  2562  			out.RawString(prefix)
  2563  		}
  2564  		if in.Tags == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  2565  			out.RawString("null")
  2566  		} else {
  2567  			out.RawByte('[')
  2568  			for v44, v45 := range in.Tags {
  2569  				if v44 > 0 {
  2570  					out.RawByte(',')
  2571  				}
  2572  				out.String(string(v45))
  2573  			}
  2574  			out.RawByte(']')
  2575  		}
  2576  	}
  2577  	{
  2578  		const prefix string = ",\"campaigns\":"
  2579  		if first {
  2580  			first = false
  2581  			out.RawString(prefix[1:])
  2582  		} else {
  2583  			out.RawString(prefix)
  2584  		}
  2585  		if in.Campaigns == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  2586  			out.RawString("null")
  2587  		} else {
  2588  			out.RawByte('[')
  2589  			for v46, v47 := range in.Campaigns {
  2590  				if v46 > 0 {
  2591  					out.RawByte(',')
  2592  				}
  2593  				out.Raw((v47).MarshalJSON())
  2594  			}
  2595  			out.RawByte(']')
  2596  		}
  2597  	}
  2598  	{
  2599  		const prefix string = ",\"delivery-status\":"
  2600  		if first {
  2601  			first = false
  2602  			out.RawString(prefix[1:])
  2603  		} else {
  2604  			out.RawString(prefix)
  2605  		}
  2606  		out.Raw((in.DeliveryStatus).MarshalJSON())
  2607  	}
  2608  	{
  2609  		const prefix string = ",\"severity\":"
  2610  		if first {
  2611  			first = false
  2612  			out.RawString(prefix[1:])
  2613  		} else {
  2614  			out.RawString(prefix)
  2615  		}
  2616  		out.String(string(in.Severity))
  2617  	}
  2618  	{
  2619  		const prefix string = ",\"reason\":"
  2620  		if first {
  2621  			first = false
  2622  			out.RawString(prefix[1:])
  2623  		} else {
  2624  			out.RawString(prefix)
  2625  		}
  2626  		out.String(string(in.Reason))
  2627  	}
  2628  	{
  2629  		const prefix string = ",\"user-variables\":"
  2630  		if first {
  2631  			first = false
  2632  			out.RawString(prefix[1:])
  2633  		} else {
  2634  			out.RawString(prefix)
  2635  		}
  2636  		if in.UserVariables == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
  2637  			out.RawString(`null`)
  2638  		} else {
  2639  			out.RawByte('{')
  2640  			v48First := true
  2641  			for v48Name, v48Value := range in.UserVariables {
  2642  				if v48First {
  2643  					v48First = false
  2644  				} else {
  2645  					out.RawByte(',')
  2646  				}
  2647  				out.String(string(v48Name))
  2648  				out.RawByte(':')
  2649  				if m, ok := v48Value.(easyjson.Marshaler); ok {
  2650  					m.MarshalEasyJSON(out)
  2651  				} else if m, ok := v48Value.(json.Marshaler); ok {
  2652  					out.Raw(m.MarshalJSON())
  2653  				} else {
  2654  					out.Raw(json.Marshal(v48Value))
  2655  				}
  2656  			}
  2657  			out.RawByte('}')
  2658  		}
  2659  	}
  2660  	{
  2661  		const prefix string = ",\"timestamp\":"
  2662  		if first {
  2663  			first = false
  2664  			out.RawString(prefix[1:])
  2665  		} else {
  2666  			out.RawString(prefix)
  2667  		}
  2668  		out.Float64(float64(in.Timestamp))
  2669  	}
  2670  	{
  2671  		const prefix string = ",\"id\":"
  2672  		if first {
  2673  			first = false
  2674  			out.RawString(prefix[1:])
  2675  		} else {
  2676  			out.RawString(prefix)
  2677  		}
  2678  		out.String(string(in.ID))
  2679  	}
  2680  	{
  2681  		const prefix string = ",\"event\":"
  2682  		if first {
  2683  			first = false
  2684  			out.RawString(prefix[1:])
  2685  		} else {
  2686  			out.RawString(prefix)
  2687  		}
  2688  		out.String(string(in.Name))
  2689  	}
  2690  	out.RawByte('}')
  2691  }
  2692  
  2693  // MarshalJSON supports json.Marshaler interface
  2694  func (v Failed) MarshalJSON() ([]byte, error) {
  2695  	w := jwriter.Writer{}
  2696  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents12(&w, v)
  2697  	return w.Buffer.BuildBytes(), w.Error
  2698  }
  2699  
  2700  // MarshalEasyJSON supports easyjson.Marshaler interface
  2701  func (v Failed) MarshalEasyJSON(w *jwriter.Writer) {
  2702  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents12(w, v)
  2703  }
  2704  
  2705  // UnmarshalJSON supports json.Unmarshaler interface
  2706  func (v *Failed) UnmarshalJSON(data []byte) error {
  2707  	r := jlexer.Lexer{Data: data}
  2708  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents12(&r, v)
  2709  	return r.Error()
  2710  }
  2711  
  2712  // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2713  func (v *Failed) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2714  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents12(l, v)
  2715  }
  2716  func easyjson692db02bDecodeGithubComMailgunMailgunGoEvents13(in *jlexer.Lexer, out *EventName) {
  2717  	isTopLevel := in.IsStart()
  2718  	if in.IsNull() {
  2719  		if isTopLevel {
  2720  			in.Consumed()
  2721  		}
  2722  		in.Skip()
  2723  		return
  2724  	}
  2725  	in.Delim('{')
  2726  	for !in.IsDelim('}') {
  2727  		key := in.UnsafeString()
  2728  		in.WantColon()
  2729  		if in.IsNull() {
  2730  			in.Skip()
  2731  			in.WantComma()
  2732  			continue
  2733  		}
  2734  		switch key {
  2735  		case "event":
  2736  			out.Name = string(in.String())
  2737  		default:
  2738  			in.SkipRecursive()
  2739  		}
  2740  		in.WantComma()
  2741  	}
  2742  	in.Delim('}')
  2743  	if isTopLevel {
  2744  		in.Consumed()
  2745  	}
  2746  }
  2747  func easyjson692db02bEncodeGithubComMailgunMailgunGoEvents13(out *jwriter.Writer, in EventName) {
  2748  	out.RawByte('{')
  2749  	first := true
  2750  	_ = first
  2751  	{
  2752  		const prefix string = ",\"event\":"
  2753  		if first {
  2754  			first = false
  2755  			out.RawString(prefix[1:])
  2756  		} else {
  2757  			out.RawString(prefix)
  2758  		}
  2759  		out.String(string(in.Name))
  2760  	}
  2761  	out.RawByte('}')
  2762  }
  2763  
  2764  // MarshalJSON supports json.Marshaler interface
  2765  func (v EventName) MarshalJSON() ([]byte, error) {
  2766  	w := jwriter.Writer{}
  2767  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents13(&w, v)
  2768  	return w.Buffer.BuildBytes(), w.Error
  2769  }
  2770  
  2771  // MarshalEasyJSON supports easyjson.Marshaler interface
  2772  func (v EventName) MarshalEasyJSON(w *jwriter.Writer) {
  2773  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents13(w, v)
  2774  }
  2775  
  2776  // UnmarshalJSON supports json.Unmarshaler interface
  2777  func (v *EventName) UnmarshalJSON(data []byte) error {
  2778  	r := jlexer.Lexer{Data: data}
  2779  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents13(&r, v)
  2780  	return r.Error()
  2781  }
  2782  
  2783  // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2784  func (v *EventName) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2785  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents13(l, v)
  2786  }
  2787  func easyjson692db02bDecodeGithubComMailgunMailgunGoEvents14(in *jlexer.Lexer, out *Delivered) {
  2788  	isTopLevel := in.IsStart()
  2789  	if in.IsNull() {
  2790  		if isTopLevel {
  2791  			in.Consumed()
  2792  		}
  2793  		in.Skip()
  2794  		return
  2795  	}
  2796  	in.Delim('{')
  2797  	for !in.IsDelim('}') {
  2798  		key := in.UnsafeString()
  2799  		in.WantColon()
  2800  		if in.IsNull() {
  2801  			in.Skip()
  2802  			in.WantComma()
  2803  			continue
  2804  		}
  2805  		switch key {
  2806  		case "envelope":
  2807  			if data := in.Raw(); in.Ok() {
  2808  				in.AddError((out.Envelope).UnmarshalJSON(data))
  2809  			}
  2810  		case "message":
  2811  			if data := in.Raw(); in.Ok() {
  2812  				in.AddError((out.Message).UnmarshalJSON(data))
  2813  			}
  2814  		case "flags":
  2815  			if data := in.Raw(); in.Ok() {
  2816  				in.AddError((out.Flags).UnmarshalJSON(data))
  2817  			}
  2818  		case "recipient":
  2819  			out.Recipient = string(in.String())
  2820  		case "recipient-domain":
  2821  			out.RecipientDomain = string(in.String())
  2822  		case "method":
  2823  			out.Method = string(in.String())
  2824  		case "tags":
  2825  			if in.IsNull() {
  2826  				in.Skip()
  2827  				out.Tags = nil
  2828  			} else {
  2829  				in.Delim('[')
  2830  				if out.Tags == nil {
  2831  					if !in.IsDelim(']') {
  2832  						out.Tags = make([]string, 0, 4)
  2833  					} else {
  2834  						out.Tags = []string{}
  2835  					}
  2836  				} else {
  2837  					out.Tags = (out.Tags)[:0]
  2838  				}
  2839  				for !in.IsDelim(']') {
  2840  					var v49 string
  2841  					v49 = string(in.String())
  2842  					out.Tags = append(out.Tags, v49)
  2843  					in.WantComma()
  2844  				}
  2845  				in.Delim(']')
  2846  			}
  2847  		case "campaigns":
  2848  			if in.IsNull() {
  2849  				in.Skip()
  2850  				out.Campaigns = nil
  2851  			} else {
  2852  				in.Delim('[')
  2853  				if out.Campaigns == nil {
  2854  					if !in.IsDelim(']') {
  2855  						out.Campaigns = make([]Campaign, 0, 2)
  2856  					} else {
  2857  						out.Campaigns = []Campaign{}
  2858  					}
  2859  				} else {
  2860  					out.Campaigns = (out.Campaigns)[:0]
  2861  				}
  2862  				for !in.IsDelim(']') {
  2863  					var v50 Campaign
  2864  					if data := in.Raw(); in.Ok() {
  2865  						in.AddError((v50).UnmarshalJSON(data))
  2866  					}
  2867  					out.Campaigns = append(out.Campaigns, v50)
  2868  					in.WantComma()
  2869  				}
  2870  				in.Delim(']')
  2871  			}
  2872  		case "delivery-status":
  2873  			if data := in.Raw(); in.Ok() {
  2874  				in.AddError((out.DeliveryStatus).UnmarshalJSON(data))
  2875  			}
  2876  		case "user-variables":
  2877  			if in.IsNull() {
  2878  				in.Skip()
  2879  			} else {
  2880  				in.Delim('{')
  2881  				if !in.IsDelim('}') {
  2882  					out.UserVariables = make(map[string]interface{})
  2883  				} else {
  2884  					out.UserVariables = nil
  2885  				}
  2886  				for !in.IsDelim('}') {
  2887  					key := string(in.String())
  2888  					in.WantColon()
  2889  					var v51 interface{}
  2890  					if m, ok := v51.(easyjson.Unmarshaler); ok {
  2891  						m.UnmarshalEasyJSON(in)
  2892  					} else if m, ok := v51.(json.Unmarshaler); ok {
  2893  						_ = m.UnmarshalJSON(in.Raw())
  2894  					} else {
  2895  						v51 = in.Interface()
  2896  					}
  2897  					(out.UserVariables)[key] = v51
  2898  					in.WantComma()
  2899  				}
  2900  				in.Delim('}')
  2901  			}
  2902  		case "timestamp":
  2903  			out.Timestamp = float64(in.Float64())
  2904  		case "id":
  2905  			out.ID = string(in.String())
  2906  		case "event":
  2907  			out.Name = string(in.String())
  2908  		default:
  2909  			in.SkipRecursive()
  2910  		}
  2911  		in.WantComma()
  2912  	}
  2913  	in.Delim('}')
  2914  	if isTopLevel {
  2915  		in.Consumed()
  2916  	}
  2917  }
  2918  func easyjson692db02bEncodeGithubComMailgunMailgunGoEvents14(out *jwriter.Writer, in Delivered) {
  2919  	out.RawByte('{')
  2920  	first := true
  2921  	_ = first
  2922  	{
  2923  		const prefix string = ",\"envelope\":"
  2924  		if first {
  2925  			first = false
  2926  			out.RawString(prefix[1:])
  2927  		} else {
  2928  			out.RawString(prefix)
  2929  		}
  2930  		out.Raw((in.Envelope).MarshalJSON())
  2931  	}
  2932  	{
  2933  		const prefix string = ",\"message\":"
  2934  		if first {
  2935  			first = false
  2936  			out.RawString(prefix[1:])
  2937  		} else {
  2938  			out.RawString(prefix)
  2939  		}
  2940  		out.Raw((in.Message).MarshalJSON())
  2941  	}
  2942  	{
  2943  		const prefix string = ",\"flags\":"
  2944  		if first {
  2945  			first = false
  2946  			out.RawString(prefix[1:])
  2947  		} else {
  2948  			out.RawString(prefix)
  2949  		}
  2950  		out.Raw((in.Flags).MarshalJSON())
  2951  	}
  2952  	{
  2953  		const prefix string = ",\"recipient\":"
  2954  		if first {
  2955  			first = false
  2956  			out.RawString(prefix[1:])
  2957  		} else {
  2958  			out.RawString(prefix)
  2959  		}
  2960  		out.String(string(in.Recipient))
  2961  	}
  2962  	{
  2963  		const prefix string = ",\"recipient-domain\":"
  2964  		if first {
  2965  			first = false
  2966  			out.RawString(prefix[1:])
  2967  		} else {
  2968  			out.RawString(prefix)
  2969  		}
  2970  		out.String(string(in.RecipientDomain))
  2971  	}
  2972  	{
  2973  		const prefix string = ",\"method\":"
  2974  		if first {
  2975  			first = false
  2976  			out.RawString(prefix[1:])
  2977  		} else {
  2978  			out.RawString(prefix)
  2979  		}
  2980  		out.String(string(in.Method))
  2981  	}
  2982  	{
  2983  		const prefix string = ",\"tags\":"
  2984  		if first {
  2985  			first = false
  2986  			out.RawString(prefix[1:])
  2987  		} else {
  2988  			out.RawString(prefix)
  2989  		}
  2990  		if in.Tags == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  2991  			out.RawString("null")
  2992  		} else {
  2993  			out.RawByte('[')
  2994  			for v52, v53 := range in.Tags {
  2995  				if v52 > 0 {
  2996  					out.RawByte(',')
  2997  				}
  2998  				out.String(string(v53))
  2999  			}
  3000  			out.RawByte(']')
  3001  		}
  3002  	}
  3003  	{
  3004  		const prefix string = ",\"campaigns\":"
  3005  		if first {
  3006  			first = false
  3007  			out.RawString(prefix[1:])
  3008  		} else {
  3009  			out.RawString(prefix)
  3010  		}
  3011  		if in.Campaigns == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  3012  			out.RawString("null")
  3013  		} else {
  3014  			out.RawByte('[')
  3015  			for v54, v55 := range in.Campaigns {
  3016  				if v54 > 0 {
  3017  					out.RawByte(',')
  3018  				}
  3019  				out.Raw((v55).MarshalJSON())
  3020  			}
  3021  			out.RawByte(']')
  3022  		}
  3023  	}
  3024  	{
  3025  		const prefix string = ",\"delivery-status\":"
  3026  		if first {
  3027  			first = false
  3028  			out.RawString(prefix[1:])
  3029  		} else {
  3030  			out.RawString(prefix)
  3031  		}
  3032  		out.Raw((in.DeliveryStatus).MarshalJSON())
  3033  	}
  3034  	{
  3035  		const prefix string = ",\"user-variables\":"
  3036  		if first {
  3037  			first = false
  3038  			out.RawString(prefix[1:])
  3039  		} else {
  3040  			out.RawString(prefix)
  3041  		}
  3042  		if in.UserVariables == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
  3043  			out.RawString(`null`)
  3044  		} else {
  3045  			out.RawByte('{')
  3046  			v56First := true
  3047  			for v56Name, v56Value := range in.UserVariables {
  3048  				if v56First {
  3049  					v56First = false
  3050  				} else {
  3051  					out.RawByte(',')
  3052  				}
  3053  				out.String(string(v56Name))
  3054  				out.RawByte(':')
  3055  				if m, ok := v56Value.(easyjson.Marshaler); ok {
  3056  					m.MarshalEasyJSON(out)
  3057  				} else if m, ok := v56Value.(json.Marshaler); ok {
  3058  					out.Raw(m.MarshalJSON())
  3059  				} else {
  3060  					out.Raw(json.Marshal(v56Value))
  3061  				}
  3062  			}
  3063  			out.RawByte('}')
  3064  		}
  3065  	}
  3066  	{
  3067  		const prefix string = ",\"timestamp\":"
  3068  		if first {
  3069  			first = false
  3070  			out.RawString(prefix[1:])
  3071  		} else {
  3072  			out.RawString(prefix)
  3073  		}
  3074  		out.Float64(float64(in.Timestamp))
  3075  	}
  3076  	{
  3077  		const prefix string = ",\"id\":"
  3078  		if first {
  3079  			first = false
  3080  			out.RawString(prefix[1:])
  3081  		} else {
  3082  			out.RawString(prefix)
  3083  		}
  3084  		out.String(string(in.ID))
  3085  	}
  3086  	{
  3087  		const prefix string = ",\"event\":"
  3088  		if first {
  3089  			first = false
  3090  			out.RawString(prefix[1:])
  3091  		} else {
  3092  			out.RawString(prefix)
  3093  		}
  3094  		out.String(string(in.Name))
  3095  	}
  3096  	out.RawByte('}')
  3097  }
  3098  
  3099  // MarshalJSON supports json.Marshaler interface
  3100  func (v Delivered) MarshalJSON() ([]byte, error) {
  3101  	w := jwriter.Writer{}
  3102  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents14(&w, v)
  3103  	return w.Buffer.BuildBytes(), w.Error
  3104  }
  3105  
  3106  // MarshalEasyJSON supports easyjson.Marshaler interface
  3107  func (v Delivered) MarshalEasyJSON(w *jwriter.Writer) {
  3108  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents14(w, v)
  3109  }
  3110  
  3111  // UnmarshalJSON supports json.Unmarshaler interface
  3112  func (v *Delivered) UnmarshalJSON(data []byte) error {
  3113  	r := jlexer.Lexer{Data: data}
  3114  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents14(&r, v)
  3115  	return r.Error()
  3116  }
  3117  
  3118  // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3119  func (v *Delivered) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3120  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents14(l, v)
  3121  }
  3122  func easyjson692db02bDecodeGithubComMailgunMailgunGoEvents15(in *jlexer.Lexer, out *Complained) {
  3123  	isTopLevel := in.IsStart()
  3124  	if in.IsNull() {
  3125  		if isTopLevel {
  3126  			in.Consumed()
  3127  		}
  3128  		in.Skip()
  3129  		return
  3130  	}
  3131  	in.Delim('{')
  3132  	for !in.IsDelim('}') {
  3133  		key := in.UnsafeString()
  3134  		in.WantColon()
  3135  		if in.IsNull() {
  3136  			in.Skip()
  3137  			in.WantComma()
  3138  			continue
  3139  		}
  3140  		switch key {
  3141  		case "message":
  3142  			if data := in.Raw(); in.Ok() {
  3143  				in.AddError((out.Message).UnmarshalJSON(data))
  3144  			}
  3145  		case "campaigns":
  3146  			if in.IsNull() {
  3147  				in.Skip()
  3148  				out.Campaigns = nil
  3149  			} else {
  3150  				in.Delim('[')
  3151  				if out.Campaigns == nil {
  3152  					if !in.IsDelim(']') {
  3153  						out.Campaigns = make([]Campaign, 0, 2)
  3154  					} else {
  3155  						out.Campaigns = []Campaign{}
  3156  					}
  3157  				} else {
  3158  					out.Campaigns = (out.Campaigns)[:0]
  3159  				}
  3160  				for !in.IsDelim(']') {
  3161  					var v57 Campaign
  3162  					if data := in.Raw(); in.Ok() {
  3163  						in.AddError((v57).UnmarshalJSON(data))
  3164  					}
  3165  					out.Campaigns = append(out.Campaigns, v57)
  3166  					in.WantComma()
  3167  				}
  3168  				in.Delim(']')
  3169  			}
  3170  		case "recipient":
  3171  			out.Recipient = string(in.String())
  3172  		case "tags":
  3173  			if in.IsNull() {
  3174  				in.Skip()
  3175  				out.Tags = nil
  3176  			} else {
  3177  				in.Delim('[')
  3178  				if out.Tags == nil {
  3179  					if !in.IsDelim(']') {
  3180  						out.Tags = make([]string, 0, 4)
  3181  					} else {
  3182  						out.Tags = []string{}
  3183  					}
  3184  				} else {
  3185  					out.Tags = (out.Tags)[:0]
  3186  				}
  3187  				for !in.IsDelim(']') {
  3188  					var v58 string
  3189  					v58 = string(in.String())
  3190  					out.Tags = append(out.Tags, v58)
  3191  					in.WantComma()
  3192  				}
  3193  				in.Delim(']')
  3194  			}
  3195  		case "user-variables":
  3196  			if in.IsNull() {
  3197  				in.Skip()
  3198  			} else {
  3199  				in.Delim('{')
  3200  				if !in.IsDelim('}') {
  3201  					out.UserVariables = make(map[string]interface{})
  3202  				} else {
  3203  					out.UserVariables = nil
  3204  				}
  3205  				for !in.IsDelim('}') {
  3206  					key := string(in.String())
  3207  					in.WantColon()
  3208  					var v59 interface{}
  3209  					if m, ok := v59.(easyjson.Unmarshaler); ok {
  3210  						m.UnmarshalEasyJSON(in)
  3211  					} else if m, ok := v59.(json.Unmarshaler); ok {
  3212  						_ = m.UnmarshalJSON(in.Raw())
  3213  					} else {
  3214  						v59 = in.Interface()
  3215  					}
  3216  					(out.UserVariables)[key] = v59
  3217  					in.WantComma()
  3218  				}
  3219  				in.Delim('}')
  3220  			}
  3221  		case "timestamp":
  3222  			out.Timestamp = float64(in.Float64())
  3223  		case "id":
  3224  			out.ID = string(in.String())
  3225  		case "event":
  3226  			out.Name = string(in.String())
  3227  		default:
  3228  			in.SkipRecursive()
  3229  		}
  3230  		in.WantComma()
  3231  	}
  3232  	in.Delim('}')
  3233  	if isTopLevel {
  3234  		in.Consumed()
  3235  	}
  3236  }
  3237  func easyjson692db02bEncodeGithubComMailgunMailgunGoEvents15(out *jwriter.Writer, in Complained) {
  3238  	out.RawByte('{')
  3239  	first := true
  3240  	_ = first
  3241  	{
  3242  		const prefix string = ",\"message\":"
  3243  		if first {
  3244  			first = false
  3245  			out.RawString(prefix[1:])
  3246  		} else {
  3247  			out.RawString(prefix)
  3248  		}
  3249  		out.Raw((in.Message).MarshalJSON())
  3250  	}
  3251  	{
  3252  		const prefix string = ",\"campaigns\":"
  3253  		if first {
  3254  			first = false
  3255  			out.RawString(prefix[1:])
  3256  		} else {
  3257  			out.RawString(prefix)
  3258  		}
  3259  		if in.Campaigns == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  3260  			out.RawString("null")
  3261  		} else {
  3262  			out.RawByte('[')
  3263  			for v60, v61 := range in.Campaigns {
  3264  				if v60 > 0 {
  3265  					out.RawByte(',')
  3266  				}
  3267  				out.Raw((v61).MarshalJSON())
  3268  			}
  3269  			out.RawByte(']')
  3270  		}
  3271  	}
  3272  	{
  3273  		const prefix string = ",\"recipient\":"
  3274  		if first {
  3275  			first = false
  3276  			out.RawString(prefix[1:])
  3277  		} else {
  3278  			out.RawString(prefix)
  3279  		}
  3280  		out.String(string(in.Recipient))
  3281  	}
  3282  	{
  3283  		const prefix string = ",\"tags\":"
  3284  		if first {
  3285  			first = false
  3286  			out.RawString(prefix[1:])
  3287  		} else {
  3288  			out.RawString(prefix)
  3289  		}
  3290  		if in.Tags == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  3291  			out.RawString("null")
  3292  		} else {
  3293  			out.RawByte('[')
  3294  			for v62, v63 := range in.Tags {
  3295  				if v62 > 0 {
  3296  					out.RawByte(',')
  3297  				}
  3298  				out.String(string(v63))
  3299  			}
  3300  			out.RawByte(']')
  3301  		}
  3302  	}
  3303  	{
  3304  		const prefix string = ",\"user-variables\":"
  3305  		if first {
  3306  			first = false
  3307  			out.RawString(prefix[1:])
  3308  		} else {
  3309  			out.RawString(prefix)
  3310  		}
  3311  		if in.UserVariables == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
  3312  			out.RawString(`null`)
  3313  		} else {
  3314  			out.RawByte('{')
  3315  			v64First := true
  3316  			for v64Name, v64Value := range in.UserVariables {
  3317  				if v64First {
  3318  					v64First = false
  3319  				} else {
  3320  					out.RawByte(',')
  3321  				}
  3322  				out.String(string(v64Name))
  3323  				out.RawByte(':')
  3324  				if m, ok := v64Value.(easyjson.Marshaler); ok {
  3325  					m.MarshalEasyJSON(out)
  3326  				} else if m, ok := v64Value.(json.Marshaler); ok {
  3327  					out.Raw(m.MarshalJSON())
  3328  				} else {
  3329  					out.Raw(json.Marshal(v64Value))
  3330  				}
  3331  			}
  3332  			out.RawByte('}')
  3333  		}
  3334  	}
  3335  	{
  3336  		const prefix string = ",\"timestamp\":"
  3337  		if first {
  3338  			first = false
  3339  			out.RawString(prefix[1:])
  3340  		} else {
  3341  			out.RawString(prefix)
  3342  		}
  3343  		out.Float64(float64(in.Timestamp))
  3344  	}
  3345  	{
  3346  		const prefix string = ",\"id\":"
  3347  		if first {
  3348  			first = false
  3349  			out.RawString(prefix[1:])
  3350  		} else {
  3351  			out.RawString(prefix)
  3352  		}
  3353  		out.String(string(in.ID))
  3354  	}
  3355  	{
  3356  		const prefix string = ",\"event\":"
  3357  		if first {
  3358  			first = false
  3359  			out.RawString(prefix[1:])
  3360  		} else {
  3361  			out.RawString(prefix)
  3362  		}
  3363  		out.String(string(in.Name))
  3364  	}
  3365  	out.RawByte('}')
  3366  }
  3367  
  3368  // MarshalJSON supports json.Marshaler interface
  3369  func (v Complained) MarshalJSON() ([]byte, error) {
  3370  	w := jwriter.Writer{}
  3371  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents15(&w, v)
  3372  	return w.Buffer.BuildBytes(), w.Error
  3373  }
  3374  
  3375  // MarshalEasyJSON supports easyjson.Marshaler interface
  3376  func (v Complained) MarshalEasyJSON(w *jwriter.Writer) {
  3377  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents15(w, v)
  3378  }
  3379  
  3380  // UnmarshalJSON supports json.Unmarshaler interface
  3381  func (v *Complained) UnmarshalJSON(data []byte) error {
  3382  	r := jlexer.Lexer{Data: data}
  3383  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents15(&r, v)
  3384  	return r.Error()
  3385  }
  3386  
  3387  // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3388  func (v *Complained) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3389  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents15(l, v)
  3390  }
  3391  func easyjson692db02bDecodeGithubComMailgunMailgunGoEvents16(in *jlexer.Lexer, out *Clicked) {
  3392  	isTopLevel := in.IsStart()
  3393  	if in.IsNull() {
  3394  		if isTopLevel {
  3395  			in.Consumed()
  3396  		}
  3397  		in.Skip()
  3398  		return
  3399  	}
  3400  	in.Delim('{')
  3401  	for !in.IsDelim('}') {
  3402  		key := in.UnsafeString()
  3403  		in.WantColon()
  3404  		if in.IsNull() {
  3405  			in.Skip()
  3406  			in.WantComma()
  3407  			continue
  3408  		}
  3409  		switch key {
  3410  		case "url":
  3411  			out.Url = string(in.String())
  3412  		case "message":
  3413  			if data := in.Raw(); in.Ok() {
  3414  				in.AddError((out.Message).UnmarshalJSON(data))
  3415  			}
  3416  		case "campaigns":
  3417  			if in.IsNull() {
  3418  				in.Skip()
  3419  				out.Campaigns = nil
  3420  			} else {
  3421  				in.Delim('[')
  3422  				if out.Campaigns == nil {
  3423  					if !in.IsDelim(']') {
  3424  						out.Campaigns = make([]Campaign, 0, 2)
  3425  					} else {
  3426  						out.Campaigns = []Campaign{}
  3427  					}
  3428  				} else {
  3429  					out.Campaigns = (out.Campaigns)[:0]
  3430  				}
  3431  				for !in.IsDelim(']') {
  3432  					var v65 Campaign
  3433  					if data := in.Raw(); in.Ok() {
  3434  						in.AddError((v65).UnmarshalJSON(data))
  3435  					}
  3436  					out.Campaigns = append(out.Campaigns, v65)
  3437  					in.WantComma()
  3438  				}
  3439  				in.Delim(']')
  3440  			}
  3441  		case "mailing-list":
  3442  			if data := in.Raw(); in.Ok() {
  3443  				in.AddError((out.MailingList).UnmarshalJSON(data))
  3444  			}
  3445  		case "recipient":
  3446  			out.Recipient = string(in.String())
  3447  		case "recipient-domain":
  3448  			out.RecipientDomain = string(in.String())
  3449  		case "tags":
  3450  			if in.IsNull() {
  3451  				in.Skip()
  3452  				out.Tags = nil
  3453  			} else {
  3454  				in.Delim('[')
  3455  				if out.Tags == nil {
  3456  					if !in.IsDelim(']') {
  3457  						out.Tags = make([]string, 0, 4)
  3458  					} else {
  3459  						out.Tags = []string{}
  3460  					}
  3461  				} else {
  3462  					out.Tags = (out.Tags)[:0]
  3463  				}
  3464  				for !in.IsDelim(']') {
  3465  					var v66 string
  3466  					v66 = string(in.String())
  3467  					out.Tags = append(out.Tags, v66)
  3468  					in.WantComma()
  3469  				}
  3470  				in.Delim(']')
  3471  			}
  3472  		case "ip":
  3473  			out.IP = string(in.String())
  3474  		case "client-info":
  3475  			if data := in.Raw(); in.Ok() {
  3476  				in.AddError((out.ClientInfo).UnmarshalJSON(data))
  3477  			}
  3478  		case "geolocation":
  3479  			if data := in.Raw(); in.Ok() {
  3480  				in.AddError((out.GeoLocation).UnmarshalJSON(data))
  3481  			}
  3482  		case "user-variables":
  3483  			if in.IsNull() {
  3484  				in.Skip()
  3485  			} else {
  3486  				in.Delim('{')
  3487  				if !in.IsDelim('}') {
  3488  					out.UserVariables = make(map[string]interface{})
  3489  				} else {
  3490  					out.UserVariables = nil
  3491  				}
  3492  				for !in.IsDelim('}') {
  3493  					key := string(in.String())
  3494  					in.WantColon()
  3495  					var v67 interface{}
  3496  					if m, ok := v67.(easyjson.Unmarshaler); ok {
  3497  						m.UnmarshalEasyJSON(in)
  3498  					} else if m, ok := v67.(json.Unmarshaler); ok {
  3499  						_ = m.UnmarshalJSON(in.Raw())
  3500  					} else {
  3501  						v67 = in.Interface()
  3502  					}
  3503  					(out.UserVariables)[key] = v67
  3504  					in.WantComma()
  3505  				}
  3506  				in.Delim('}')
  3507  			}
  3508  		case "timestamp":
  3509  			out.Timestamp = float64(in.Float64())
  3510  		case "id":
  3511  			out.ID = string(in.String())
  3512  		case "event":
  3513  			out.Name = string(in.String())
  3514  		default:
  3515  			in.SkipRecursive()
  3516  		}
  3517  		in.WantComma()
  3518  	}
  3519  	in.Delim('}')
  3520  	if isTopLevel {
  3521  		in.Consumed()
  3522  	}
  3523  }
  3524  func easyjson692db02bEncodeGithubComMailgunMailgunGoEvents16(out *jwriter.Writer, in Clicked) {
  3525  	out.RawByte('{')
  3526  	first := true
  3527  	_ = first
  3528  	{
  3529  		const prefix string = ",\"url\":"
  3530  		if first {
  3531  			first = false
  3532  			out.RawString(prefix[1:])
  3533  		} else {
  3534  			out.RawString(prefix)
  3535  		}
  3536  		out.String(string(in.Url))
  3537  	}
  3538  	{
  3539  		const prefix string = ",\"message\":"
  3540  		if first {
  3541  			first = false
  3542  			out.RawString(prefix[1:])
  3543  		} else {
  3544  			out.RawString(prefix)
  3545  		}
  3546  		out.Raw((in.Message).MarshalJSON())
  3547  	}
  3548  	{
  3549  		const prefix string = ",\"campaigns\":"
  3550  		if first {
  3551  			first = false
  3552  			out.RawString(prefix[1:])
  3553  		} else {
  3554  			out.RawString(prefix)
  3555  		}
  3556  		if in.Campaigns == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  3557  			out.RawString("null")
  3558  		} else {
  3559  			out.RawByte('[')
  3560  			for v68, v69 := range in.Campaigns {
  3561  				if v68 > 0 {
  3562  					out.RawByte(',')
  3563  				}
  3564  				out.Raw((v69).MarshalJSON())
  3565  			}
  3566  			out.RawByte(']')
  3567  		}
  3568  	}
  3569  	{
  3570  		const prefix string = ",\"mailing-list\":"
  3571  		if first {
  3572  			first = false
  3573  			out.RawString(prefix[1:])
  3574  		} else {
  3575  			out.RawString(prefix)
  3576  		}
  3577  		out.Raw((in.MailingList).MarshalJSON())
  3578  	}
  3579  	{
  3580  		const prefix string = ",\"recipient\":"
  3581  		if first {
  3582  			first = false
  3583  			out.RawString(prefix[1:])
  3584  		} else {
  3585  			out.RawString(prefix)
  3586  		}
  3587  		out.String(string(in.Recipient))
  3588  	}
  3589  	{
  3590  		const prefix string = ",\"recipient-domain\":"
  3591  		if first {
  3592  			first = false
  3593  			out.RawString(prefix[1:])
  3594  		} else {
  3595  			out.RawString(prefix)
  3596  		}
  3597  		out.String(string(in.RecipientDomain))
  3598  	}
  3599  	{
  3600  		const prefix string = ",\"tags\":"
  3601  		if first {
  3602  			first = false
  3603  			out.RawString(prefix[1:])
  3604  		} else {
  3605  			out.RawString(prefix)
  3606  		}
  3607  		if in.Tags == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  3608  			out.RawString("null")
  3609  		} else {
  3610  			out.RawByte('[')
  3611  			for v70, v71 := range in.Tags {
  3612  				if v70 > 0 {
  3613  					out.RawByte(',')
  3614  				}
  3615  				out.String(string(v71))
  3616  			}
  3617  			out.RawByte(']')
  3618  		}
  3619  	}
  3620  	{
  3621  		const prefix string = ",\"ip\":"
  3622  		if first {
  3623  			first = false
  3624  			out.RawString(prefix[1:])
  3625  		} else {
  3626  			out.RawString(prefix)
  3627  		}
  3628  		out.String(string(in.IP))
  3629  	}
  3630  	{
  3631  		const prefix string = ",\"client-info\":"
  3632  		if first {
  3633  			first = false
  3634  			out.RawString(prefix[1:])
  3635  		} else {
  3636  			out.RawString(prefix)
  3637  		}
  3638  		out.Raw((in.ClientInfo).MarshalJSON())
  3639  	}
  3640  	{
  3641  		const prefix string = ",\"geolocation\":"
  3642  		if first {
  3643  			first = false
  3644  			out.RawString(prefix[1:])
  3645  		} else {
  3646  			out.RawString(prefix)
  3647  		}
  3648  		out.Raw((in.GeoLocation).MarshalJSON())
  3649  	}
  3650  	{
  3651  		const prefix string = ",\"user-variables\":"
  3652  		if first {
  3653  			first = false
  3654  			out.RawString(prefix[1:])
  3655  		} else {
  3656  			out.RawString(prefix)
  3657  		}
  3658  		if in.UserVariables == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
  3659  			out.RawString(`null`)
  3660  		} else {
  3661  			out.RawByte('{')
  3662  			v72First := true
  3663  			for v72Name, v72Value := range in.UserVariables {
  3664  				if v72First {
  3665  					v72First = false
  3666  				} else {
  3667  					out.RawByte(',')
  3668  				}
  3669  				out.String(string(v72Name))
  3670  				out.RawByte(':')
  3671  				if m, ok := v72Value.(easyjson.Marshaler); ok {
  3672  					m.MarshalEasyJSON(out)
  3673  				} else if m, ok := v72Value.(json.Marshaler); ok {
  3674  					out.Raw(m.MarshalJSON())
  3675  				} else {
  3676  					out.Raw(json.Marshal(v72Value))
  3677  				}
  3678  			}
  3679  			out.RawByte('}')
  3680  		}
  3681  	}
  3682  	{
  3683  		const prefix string = ",\"timestamp\":"
  3684  		if first {
  3685  			first = false
  3686  			out.RawString(prefix[1:])
  3687  		} else {
  3688  			out.RawString(prefix)
  3689  		}
  3690  		out.Float64(float64(in.Timestamp))
  3691  	}
  3692  	{
  3693  		const prefix string = ",\"id\":"
  3694  		if first {
  3695  			first = false
  3696  			out.RawString(prefix[1:])
  3697  		} else {
  3698  			out.RawString(prefix)
  3699  		}
  3700  		out.String(string(in.ID))
  3701  	}
  3702  	{
  3703  		const prefix string = ",\"event\":"
  3704  		if first {
  3705  			first = false
  3706  			out.RawString(prefix[1:])
  3707  		} else {
  3708  			out.RawString(prefix)
  3709  		}
  3710  		out.String(string(in.Name))
  3711  	}
  3712  	out.RawByte('}')
  3713  }
  3714  
  3715  // MarshalJSON supports json.Marshaler interface
  3716  func (v Clicked) MarshalJSON() ([]byte, error) {
  3717  	w := jwriter.Writer{}
  3718  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents16(&w, v)
  3719  	return w.Buffer.BuildBytes(), w.Error
  3720  }
  3721  
  3722  // MarshalEasyJSON supports easyjson.Marshaler interface
  3723  func (v Clicked) MarshalEasyJSON(w *jwriter.Writer) {
  3724  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents16(w, v)
  3725  }
  3726  
  3727  // UnmarshalJSON supports json.Unmarshaler interface
  3728  func (v *Clicked) UnmarshalJSON(data []byte) error {
  3729  	r := jlexer.Lexer{Data: data}
  3730  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents16(&r, v)
  3731  	return r.Error()
  3732  }
  3733  
  3734  // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3735  func (v *Clicked) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3736  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents16(l, v)
  3737  }
  3738  func easyjson692db02bDecodeGithubComMailgunMailgunGoEvents17(in *jlexer.Lexer, out *Accepted) {
  3739  	isTopLevel := in.IsStart()
  3740  	if in.IsNull() {
  3741  		if isTopLevel {
  3742  			in.Consumed()
  3743  		}
  3744  		in.Skip()
  3745  		return
  3746  	}
  3747  	in.Delim('{')
  3748  	for !in.IsDelim('}') {
  3749  		key := in.UnsafeString()
  3750  		in.WantColon()
  3751  		if in.IsNull() {
  3752  			in.Skip()
  3753  			in.WantComma()
  3754  			continue
  3755  		}
  3756  		switch key {
  3757  		case "envelope":
  3758  			if data := in.Raw(); in.Ok() {
  3759  				in.AddError((out.Envelope).UnmarshalJSON(data))
  3760  			}
  3761  		case "message":
  3762  			if data := in.Raw(); in.Ok() {
  3763  				in.AddError((out.Message).UnmarshalJSON(data))
  3764  			}
  3765  		case "flags":
  3766  			if data := in.Raw(); in.Ok() {
  3767  				in.AddError((out.Flags).UnmarshalJSON(data))
  3768  			}
  3769  		case "recipient":
  3770  			out.Recipient = string(in.String())
  3771  		case "recipient-domain":
  3772  			out.RecipientDomain = string(in.String())
  3773  		case "method":
  3774  			out.Method = string(in.String())
  3775  		case "originating-ip":
  3776  			out.OriginatingIP = string(in.String())
  3777  		case "tags":
  3778  			if in.IsNull() {
  3779  				in.Skip()
  3780  				out.Tags = nil
  3781  			} else {
  3782  				in.Delim('[')
  3783  				if out.Tags == nil {
  3784  					if !in.IsDelim(']') {
  3785  						out.Tags = make([]string, 0, 4)
  3786  					} else {
  3787  						out.Tags = []string{}
  3788  					}
  3789  				} else {
  3790  					out.Tags = (out.Tags)[:0]
  3791  				}
  3792  				for !in.IsDelim(']') {
  3793  					var v73 string
  3794  					v73 = string(in.String())
  3795  					out.Tags = append(out.Tags, v73)
  3796  					in.WantComma()
  3797  				}
  3798  				in.Delim(']')
  3799  			}
  3800  		case "campaigns":
  3801  			if in.IsNull() {
  3802  				in.Skip()
  3803  				out.Campaigns = nil
  3804  			} else {
  3805  				in.Delim('[')
  3806  				if out.Campaigns == nil {
  3807  					if !in.IsDelim(']') {
  3808  						out.Campaigns = make([]Campaign, 0, 2)
  3809  					} else {
  3810  						out.Campaigns = []Campaign{}
  3811  					}
  3812  				} else {
  3813  					out.Campaigns = (out.Campaigns)[:0]
  3814  				}
  3815  				for !in.IsDelim(']') {
  3816  					var v74 Campaign
  3817  					if data := in.Raw(); in.Ok() {
  3818  						in.AddError((v74).UnmarshalJSON(data))
  3819  					}
  3820  					out.Campaigns = append(out.Campaigns, v74)
  3821  					in.WantComma()
  3822  				}
  3823  				in.Delim(']')
  3824  			}
  3825  		case "user-variables":
  3826  			if in.IsNull() {
  3827  				in.Skip()
  3828  			} else {
  3829  				in.Delim('{')
  3830  				if !in.IsDelim('}') {
  3831  					out.UserVariables = make(map[string]interface{})
  3832  				} else {
  3833  					out.UserVariables = nil
  3834  				}
  3835  				for !in.IsDelim('}') {
  3836  					key := string(in.String())
  3837  					in.WantColon()
  3838  					var v75 interface{}
  3839  					if m, ok := v75.(easyjson.Unmarshaler); ok {
  3840  						m.UnmarshalEasyJSON(in)
  3841  					} else if m, ok := v75.(json.Unmarshaler); ok {
  3842  						_ = m.UnmarshalJSON(in.Raw())
  3843  					} else {
  3844  						v75 = in.Interface()
  3845  					}
  3846  					(out.UserVariables)[key] = v75
  3847  					in.WantComma()
  3848  				}
  3849  				in.Delim('}')
  3850  			}
  3851  		case "timestamp":
  3852  			out.Timestamp = float64(in.Float64())
  3853  		case "id":
  3854  			out.ID = string(in.String())
  3855  		case "event":
  3856  			out.Name = string(in.String())
  3857  		default:
  3858  			in.SkipRecursive()
  3859  		}
  3860  		in.WantComma()
  3861  	}
  3862  	in.Delim('}')
  3863  	if isTopLevel {
  3864  		in.Consumed()
  3865  	}
  3866  }
  3867  func easyjson692db02bEncodeGithubComMailgunMailgunGoEvents17(out *jwriter.Writer, in Accepted) {
  3868  	out.RawByte('{')
  3869  	first := true
  3870  	_ = first
  3871  	{
  3872  		const prefix string = ",\"envelope\":"
  3873  		if first {
  3874  			first = false
  3875  			out.RawString(prefix[1:])
  3876  		} else {
  3877  			out.RawString(prefix)
  3878  		}
  3879  		out.Raw((in.Envelope).MarshalJSON())
  3880  	}
  3881  	{
  3882  		const prefix string = ",\"message\":"
  3883  		if first {
  3884  			first = false
  3885  			out.RawString(prefix[1:])
  3886  		} else {
  3887  			out.RawString(prefix)
  3888  		}
  3889  		out.Raw((in.Message).MarshalJSON())
  3890  	}
  3891  	{
  3892  		const prefix string = ",\"flags\":"
  3893  		if first {
  3894  			first = false
  3895  			out.RawString(prefix[1:])
  3896  		} else {
  3897  			out.RawString(prefix)
  3898  		}
  3899  		out.Raw((in.Flags).MarshalJSON())
  3900  	}
  3901  	{
  3902  		const prefix string = ",\"recipient\":"
  3903  		if first {
  3904  			first = false
  3905  			out.RawString(prefix[1:])
  3906  		} else {
  3907  			out.RawString(prefix)
  3908  		}
  3909  		out.String(string(in.Recipient))
  3910  	}
  3911  	{
  3912  		const prefix string = ",\"recipient-domain\":"
  3913  		if first {
  3914  			first = false
  3915  			out.RawString(prefix[1:])
  3916  		} else {
  3917  			out.RawString(prefix)
  3918  		}
  3919  		out.String(string(in.RecipientDomain))
  3920  	}
  3921  	{
  3922  		const prefix string = ",\"method\":"
  3923  		if first {
  3924  			first = false
  3925  			out.RawString(prefix[1:])
  3926  		} else {
  3927  			out.RawString(prefix)
  3928  		}
  3929  		out.String(string(in.Method))
  3930  	}
  3931  	{
  3932  		const prefix string = ",\"originating-ip\":"
  3933  		if first {
  3934  			first = false
  3935  			out.RawString(prefix[1:])
  3936  		} else {
  3937  			out.RawString(prefix)
  3938  		}
  3939  		out.String(string(in.OriginatingIP))
  3940  	}
  3941  	{
  3942  		const prefix string = ",\"tags\":"
  3943  		if first {
  3944  			first = false
  3945  			out.RawString(prefix[1:])
  3946  		} else {
  3947  			out.RawString(prefix)
  3948  		}
  3949  		if in.Tags == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  3950  			out.RawString("null")
  3951  		} else {
  3952  			out.RawByte('[')
  3953  			for v76, v77 := range in.Tags {
  3954  				if v76 > 0 {
  3955  					out.RawByte(',')
  3956  				}
  3957  				out.String(string(v77))
  3958  			}
  3959  			out.RawByte(']')
  3960  		}
  3961  	}
  3962  	{
  3963  		const prefix string = ",\"campaigns\":"
  3964  		if first {
  3965  			first = false
  3966  			out.RawString(prefix[1:])
  3967  		} else {
  3968  			out.RawString(prefix)
  3969  		}
  3970  		if in.Campaigns == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  3971  			out.RawString("null")
  3972  		} else {
  3973  			out.RawByte('[')
  3974  			for v78, v79 := range in.Campaigns {
  3975  				if v78 > 0 {
  3976  					out.RawByte(',')
  3977  				}
  3978  				out.Raw((v79).MarshalJSON())
  3979  			}
  3980  			out.RawByte(']')
  3981  		}
  3982  	}
  3983  	{
  3984  		const prefix string = ",\"user-variables\":"
  3985  		if first {
  3986  			first = false
  3987  			out.RawString(prefix[1:])
  3988  		} else {
  3989  			out.RawString(prefix)
  3990  		}
  3991  		if in.UserVariables == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
  3992  			out.RawString(`null`)
  3993  		} else {
  3994  			out.RawByte('{')
  3995  			v80First := true
  3996  			for v80Name, v80Value := range in.UserVariables {
  3997  				if v80First {
  3998  					v80First = false
  3999  				} else {
  4000  					out.RawByte(',')
  4001  				}
  4002  				out.String(string(v80Name))
  4003  				out.RawByte(':')
  4004  				if m, ok := v80Value.(easyjson.Marshaler); ok {
  4005  					m.MarshalEasyJSON(out)
  4006  				} else if m, ok := v80Value.(json.Marshaler); ok {
  4007  					out.Raw(m.MarshalJSON())
  4008  				} else {
  4009  					out.Raw(json.Marshal(v80Value))
  4010  				}
  4011  			}
  4012  			out.RawByte('}')
  4013  		}
  4014  	}
  4015  	{
  4016  		const prefix string = ",\"timestamp\":"
  4017  		if first {
  4018  			first = false
  4019  			out.RawString(prefix[1:])
  4020  		} else {
  4021  			out.RawString(prefix)
  4022  		}
  4023  		out.Float64(float64(in.Timestamp))
  4024  	}
  4025  	{
  4026  		const prefix string = ",\"id\":"
  4027  		if first {
  4028  			first = false
  4029  			out.RawString(prefix[1:])
  4030  		} else {
  4031  			out.RawString(prefix)
  4032  		}
  4033  		out.String(string(in.ID))
  4034  	}
  4035  	{
  4036  		const prefix string = ",\"event\":"
  4037  		if first {
  4038  			first = false
  4039  			out.RawString(prefix[1:])
  4040  		} else {
  4041  			out.RawString(prefix)
  4042  		}
  4043  		out.String(string(in.Name))
  4044  	}
  4045  	out.RawByte('}')
  4046  }
  4047  
  4048  // MarshalJSON supports json.Marshaler interface
  4049  func (v Accepted) MarshalJSON() ([]byte, error) {
  4050  	w := jwriter.Writer{}
  4051  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents17(&w, v)
  4052  	return w.Buffer.BuildBytes(), w.Error
  4053  }
  4054  
  4055  // MarshalEasyJSON supports easyjson.Marshaler interface
  4056  func (v Accepted) MarshalEasyJSON(w *jwriter.Writer) {
  4057  	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents17(w, v)
  4058  }
  4059  
  4060  // UnmarshalJSON supports json.Unmarshaler interface
  4061  func (v *Accepted) UnmarshalJSON(data []byte) error {
  4062  	r := jlexer.Lexer{Data: data}
  4063  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents17(&r, v)
  4064  	return r.Error()
  4065  }
  4066  
  4067  // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4068  func (v *Accepted) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4069  	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents17(l, v)
  4070  }