Method
Inherited from RawRepresentable.encode(to:).
RawRepresentable.encode(to:)
func encode(to encoder: any Encoder) throws