internal static unsafe SetChaosScheduleDescription CreateFromNative(IntPtr nativeRaw)
        {
            NativeTypes.FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION native = *(NativeTypes.FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION *)nativeRaw;

            ChaosScheduleDescription chaosScheduleDescription = ChaosScheduleDescription.FromNative(native.ChaosScheduleDescription);

            return(new SetChaosScheduleDescription(chaosScheduleDescription));
        }
        internal IntPtr ToNative(PinCollection pinCollection)
        {
            var nativeSetChaosScheduleDescription = new NativeTypes.FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION();

            if (this.ChaosScheduleDescription != null)
            {
                nativeSetChaosScheduleDescription.ChaosScheduleDescription = this.ChaosScheduleDescription.ToNative(pinCollection);
            }

            return(pinCollection.AddBlittable(nativeSetChaosScheduleDescription));
        }