resolved decoding and encoding of avro enums