An alternative to providing a function like this is to implement Deserialize for Channel manually. This can be useful if Channel is used in some other serializable type and we want it to have the same serialization behaviour there too. Not important in this case, just a tip!
_Originally posted by @mitchmindtree in https://github.com/FuelLabs/fuelup/pull/335#discussion_r1070858715_