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