Function Decoder.readUnionIndex
Reads the tag of a union written by [Encoder.writeIndex].
Throws
AvroTypeException If this is a stateful reader and union is not the type of the next value to be read
Reads the tag of a union written by [Encoder.writeIndex].
AvroTypeException If this is a stateful reader and union is not the type of the next value to be read