using System.Collections.Generic; using OneOf; namespace AntDesign { using StringNumber = OneOf; public class ColLayoutParam { public StringNumber Flex { get; set; } public StringNumber Span { get; set; } public StringNumber Order { get; set; } public StringNumber Offset { get; set; } public StringNumber Push { get; set; } public StringNumber Pull { get; set; } public OneOf Xs { get; set; } public OneOf Sm { get; set; } public OneOf Md { get; set; } public OneOf Lg { get; set; } public OneOf Xl { get; set; } public OneOf Xxl { get; set; } public Dictionary ToAttributes() { Dictionary attributes = new Dictionary(); attributes.Add("Flex", Flex); attributes.Add("Span", Span); attributes.Add("Order", Order); attributes.Add("Offset", Offset); attributes.Add("Push", Push); attributes.Add("Pull", Pull); attributes.Add("Xs", Xs); attributes.Add("Sm", Sm); attributes.Add("Md", Md); attributes.Add("Lg", Lg); attributes.Add("Xl", Xl); attributes.Add("Xxl", Xxl); return attributes; } } }