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