// UnmarshalWithCodec unmarshals the specified data into the object with the specified codec. func (s *WebCodecService) UnmarshalWithCodec(codec codecs.Codec, data []byte, object interface{}) error { // make sure we have at least one codec s.assertCodecs() return codec.Unmarshal(data, object) }