25 this.IconArray =
Icons;
52 public static bool TryParse(Dictionary<string, object> Generic,
57 if (Generic.TryGetValue(
"icons", out
object? Obj) && Obj is Array
Icons)
61 foreach (
object Item
in Icons)
63 if (Item is Dictionary<string, object> IconObj &&
66 IconList.Add(TypedIcon);
70 Result.IconArray = IconList.ToArray();
81 public Dictionary<string, object>[]
ToJson()
84 return Array.Empty<Dictionary<string, object>>();
86 Dictionary<string, object>[] Result =
new Dictionary<string, object>[this.
IconArray.Length];
87 for (
int i = 0; i < this.
IconArray.Length; i++)
An optionally-sized icon that can be displayed in a user interface.
static bool TryParse(Dictionary< string, object > Generic, out Icon Typed)
Tries to parse a generic structure into a typed structure.
Base interface to add icons property.
Icons()
Base interface to add icons property.
static bool TryParse(Dictionary< string, object > Generic, out Icons Typed)
Tries to parse a generic structure into a typed structure.
bool Empty
If there are icons defined.
Icon?[] IconArray
Optional set of sized icons that the client can display in a user interface.
Icons(params Icon[] Icons)
Base interface to add icons property.
Dictionary< string, object >[] ToJson()
Converts object to a generic representation.
A chunked list is a linked list of chunks of objects of type T .