code: function deserializeWith(kernel, options) {
      const transform = buildPropertyTransform(kernel, options);
      return (target, property) => {
          // get the class constructor
          const constr = target.constructor;
          // retrieve the current metadata
          const metadata = Reflect.getMetadata(METADATA_deserializeWith, constr) || {};
          metadata[property] = transform;
          // store back to the object
          Reflect.defineMetadata(METADATA_deserializeWith, metadata, constr);
      };
  }
docs: Defines the required transformations to deserialize a property from a CoAP object
  @param kernel The transformation to apply during deserialization
  @param options Options for deserialisation