/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (CountryCode != null) { p.Add(new KeyValuePair <string, string>("CountryCode", CountryCode)); } if (Type != null) { p.AddRange(Type.Select(prop => new KeyValuePair <string, string>("Type", prop))); } if (AddOns != null) { p.AddRange(AddOns.Select(prop => new KeyValuePair <string, string>("AddOns", prop))); } if (AddOnsData != null) { p.AddRange(PrefixedCollapsibleMap.Serialize(AddOnsData, "AddOns")); } return(p); }