Update the documentation for decoding to generics