public static void Serialize(SecondEventPayload instance, global::Improbable.Worker.CInterop.SchemaObject obj)
 {
     {
         obj.AddFloat(1, instance.Field1);
     }
     {
         obj.AddDouble(2, instance.Field2);
     }
 }
            public static SecondEventPayload Deserialize(global::Improbable.Worker.CInterop.SchemaObject obj)
            {
                var instance = new SecondEventPayload();

                {
                    instance.Field1 = obj.GetFloat(1);
                }
                {
                    instance.Field2 = obj.GetDouble(2);
                }
                return(instance);
            }