Encodes the value in the same shape it was decoded from.
func encode(to encoder: Encoder) throws
encoder
The encoder to write to.