func (j *imageStore) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error {
	var err error
	currentKey := ffjtimageStorebase
	_ = currentKey
	tok := fflib.FFTok_init
	wantedTok := fflib.FFTok_init

mainparse:
	for {
		tok = fs.Scan()
		//	println(fmt.Sprintf("debug: tok: %v  state: %v", tok, state))
		if tok == fflib.FFTok_error {
			goto tokerror
		}

		switch state {

		case fflib.FFParse_map_start:
			if tok != fflib.FFTok_left_bracket {
				wantedTok = fflib.FFTok_left_bracket
				goto wrongtokenerror
			}
			state = fflib.FFParse_want_key
			continue

		case fflib.FFParse_after_value:
			if tok == fflib.FFTok_comma {
				state = fflib.FFParse_want_key
			} else if tok == fflib.FFTok_right_bracket {
				goto done
			} else {
				wantedTok = fflib.FFTok_comma
				goto wrongtokenerror
			}

		case fflib.FFParse_want_key:
			// json {} ended. goto exit. woo.
			if tok == fflib.FFTok_right_bracket {
				goto done
			}
			if tok != fflib.FFTok_string {
				wantedTok = fflib.FFTok_string
				goto wrongtokenerror
			}

			kn := fs.Output.Bytes()
			if len(kn) <= 0 {
				// "" case. hrm.
				currentKey = ffjtimageStorenosuchkey
				state = fflib.FFParse_want_colon
				goto mainparse
			} else {
				switch kn[0] {

				}

				currentKey = ffjtimageStorenosuchkey
				state = fflib.FFParse_want_colon
				goto mainparse
			}

		case fflib.FFParse_want_colon:
			if tok != fflib.FFTok_colon {
				wantedTok = fflib.FFTok_colon
				goto wrongtokenerror
			}
			state = fflib.FFParse_want_value
			continue
		case fflib.FFParse_want_value:

			if tok == fflib.FFTok_left_brace || tok == fflib.FFTok_left_bracket || tok == fflib.FFTok_integer || tok == fflib.FFTok_double || tok == fflib.FFTok_string || tok == fflib.FFTok_bool || tok == fflib.FFTok_null {
				switch currentKey {

				case ffjtimageStorenosuchkey:
					err = fs.SkipField(tok)
					if err != nil {
						return fs.WrapErr(err)
					}
					state = fflib.FFParse_after_value
					goto mainparse
				}
			} else {
				goto wantedvalue
			}
		}
	}

wantedvalue:
	return fs.WrapErr(fmt.Errorf("wanted value token, but got token: %v", tok))
wrongtokenerror:
	return fs.WrapErr(fmt.Errorf("ffjson: wanted token: %v, but got token: %v output=%s", wantedTok, tok, fs.Output.String()))
tokerror:
	if fs.BigError != nil {
		return fs.WrapErr(fs.BigError)
	}
	err = fs.Error.ToError()
	if err != nil {
		return fs.WrapErr(err)
	}
	panic("ffjson-generated: unreachable, please report bug.")
done:

	return nil
}
// UnmarshalJSONFFLexer fast json unmarshall - template ffjson
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
// UnmarshalJSONFFLexer fast json unmarshall - template ffjson
func (j *imageStore) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error {
	var err error
	currentKey := ffjtimageStorebase
	_ = currentKey
	tok := fflib.FFTok_init
	wantedTok := fflib.FFTok_init
mainparse:
	for {
		tok = fs.Scan()
		if tok == fflib.FFTok_error {
			goto tokerror
		}
		switch state {
		case fflib.FFParse_map_start:
			if tok != fflib.FFTok_left_bracket {
				wantedTok = fflib.FFTok_left_bracket
				goto wrongtokenerror
			}
			state = fflib.FFParse_want_key
			continue
		case fflib.FFParse_after_value:
			if tok == fflib.FFTok_comma {
				state = fflib.FFParse_want_key
			} else if tok == fflib.FFTok_right_bracket {
				goto done
			} else {
				wantedTok = fflib.FFTok_comma
				goto wrongtokenerror
			}
		case fflib.FFParse_want_key:
			if tok == fflib.FFTok_right_bracket {
				goto done
			}
			if tok != fflib.FFTok_string {
				wantedTok = fflib.FFTok_string
				goto wrongtokenerror
			}
			kn := fs.Output.Bytes()
			if len(kn) <= 0 {
				currentKey = ffjtimageStorenosuchkey
				state = fflib.FFParse_want_colon
				goto mainparse
			} else {
				switch kn[0] {
				}
				currentKey = ffjtimageStorenosuchkey
				state = fflib.FFParse_want_colon
				goto mainparse
			}
		case fflib.FFParse_want_colon:
			if tok != fflib.FFTok_colon {
				wantedTok = fflib.FFTok_colon
				goto wrongtokenerror
			}
			state = fflib.FFParse_want_value
			continue
		case fflib.FFParse_want_value:
			if tok == fflib.FFTok_left_brace || tok == fflib.FFTok_left_bracket || tok == fflib.FFTok_integer || tok == fflib.FFTok_double || tok == fflib.FFTok_string || tok == fflib.FFTok_bool || tok == fflib.FFTok_null {
				switch currentKey {
				case ffjtimageStorenosuchkey:
					err = fs.SkipField(tok)
					if err != nil {
						return fs.WrapErr(err)
					}
					state = fflib.FFParse_after_value
					goto mainparse
				}
			} else {
				goto wantedvalue
			}
		}
	}
wantedvalue:
	return fs.WrapErr(fmt.Errorf("wanted value token, but got token: %v", tok))
wrongtokenerror:
	return fs.WrapErr(fmt.Errorf("ffjson: wanted token: %v, but got token: %v output=%s", wantedTok, tok, fs.Output.String()))
tokerror:
	if fs.BigError != nil {
		return fs.WrapErr(fs.BigError)
	}
	err = fs.Error.ToError()
	if err != nil {
		return fs.WrapErr(err)
	}
	panic("ffjson-generated: unreachable, please report bug.")
done:
	return nil
}
func ( j * imageStore ) UnmarshalJSONFFLexer ( fs * fflib . FFLexer , state fflib . FFParseState ) error { var err error currentKey := ffjtimageStorebase _ = currentKey tok := fflib . FFTok_init wantedTok := fflib . FFTok_init mainparse : for { tok = fs . Scan ( ) if tok == fflib . FFTok_error { goto tokerror } switch state { case fflib . FFParse_map_start : if tok != fflib . FFTok_left_bracket { wantedTok = fflib . FFTok_left_bracket goto wrongtokenerror } state = fflib . FFParse_want_key continue case fflib . FFParse_after_value : if tok == fflib . FFTok_comma { state = fflib . FFParse_want_key } else if tok == fflib . FFTok_right_bracket { goto done } else { wantedTok = fflib . FFTok_comma goto wrongtokenerror } case fflib . FFParse_want_key : if tok == fflib . FFTok_right_bracket { goto done } if tok != fflib . FFTok_string { wantedTok = fflib . FFTok_string goto wrongtokenerror } kn := fs . Output . Bytes ( ) if len ( kn ) <= 0 { currentKey = ffjtimageStorenosuchkey state = fflib . FFParse_want_colon goto mainparse } else { switch kn [ 0 ] { } currentKey = ffjtimageStorenosuchkey state = fflib . FFParse_want_colon goto mainparse } case fflib . FFParse_want_colon : if tok != fflib . FFTok_colon { wantedTok = fflib . FFTok_colon goto wrongtokenerror } state = fflib . FFParse_want_value continue case fflib . FFParse_want_value : if tok == fflib . FFTok_left_brace || tok == fflib . FFTok_left_bracket || tok == fflib . FFTok_integer || tok == fflib . FFTok_double || tok == fflib . FFTok_string || tok == fflib . FFTok_bool || tok == fflib . FFTok_null { switch currentKey { case ffjtimageStorenosuchkey : err = fs . SkipField ( tok ) if err != nil { return fs . WrapErr ( err ) } state = fflib . FFParse_after_value goto mainparse } } else { goto wantedvalue } } } wantedvalue : return fs . WrapErr ( fmt . Errorf ( " " , tok ) ) wrongtokenerror : return fs . WrapErr ( fmt . Errorf ( " " , wantedTok , tok , fs . Output . String ( ) ) ) tokerror : if fs . BigError != nil { return fs . WrapErr ( fs . BigError ) } err = fs . Error . ToError ( ) if err != nil { return fs . WrapErr ( err ) } panic ( " " ) done : return nil }
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
//	println(fmt.Sprintf("debug: tok: %v  state: %v", tok, state)) // json {} ended. goto exit. woo. // "" case. hrm.