// Automatically generated by the Fast Binary Encoding compiler, do not modify!
// https://github.com/chronoxor/FastBinaryEncoding
// Source: enums.fbe
// Version: 1.4.0.0

@file:Suppress("UnusedImport", "unused")

package com.chronoxor.enums.fbe

class EnumInt8Json : com.google.gson.JsonSerializer<com.chronoxor.enums.EnumInt8>, com.google.gson.JsonDeserializer<com.chronoxor.enums.EnumInt8>
{
    override fun serialize(src: com.chronoxor.enums.EnumInt8, typeOfSrc: java.lang.reflect.Type, context: com.google.gson.JsonSerializationContext): com.google.gson.JsonElement
    {
        return com.google.gson.JsonPrimitive(src.raw)
    }

    @Throws(com.google.gson.JsonParseException::class)
    override fun deserialize(json: com.google.gson.JsonElement, type: java.lang.reflect.Type, context: com.google.gson.JsonDeserializationContext): com.chronoxor.enums.EnumInt8
    {
        return com.chronoxor.enums.EnumInt8(json.asJsonPrimitive.asByte)
    }
}
