init(from:)
Creates a new instance from a decoder.
Declaration
init(from decoder: any Decoder) throwsParameters
- decoder:
The decoder to read data from.
Discussion
Throws an error if reading from decoder fails, or if the data is corrupted or otherwise invalid.