code: function persistObject(target, schema) {
      var model = createModel(schema);
      serializr_1.setDefaultModelSchema(target, model);
      return target;
  }
docs: const demo = { title: true, name: { type: 'object', schema: { first: true, second: true, last: true } } }