Ejemplo n.º 1
0
        public byte[] ToGlbBytes()
        {
            var c = new JsonSchemaValidationContext(this)
            {
                EnableDiagnosisForNotRequiredFields = true,
            };
            var json = JsonSchema.FromType(GetType()).Serialize(this, c);

            RemoveUnusedExtensions(json);

            return(Glb.ToBytes(json, buffers[0].GetBytes()));
        }