in pekko-sample-sharding-scala/killrweather/src/main/scala/sample/killrweather/JacksonSerializers.scala [37:44]
override def serialize(value: WeatherStation.Function, gen: JsonGenerator, provider: SerializerProvider): Unit = {
val strValue = value match {
case WeatherStation.Function.Average => "a"
case WeatherStation.Function.Current => "c"
case WeatherStation.Function.HighLow => "h"
}
gen.writeString(strValue)
}