internal static IJsonType Convert(Club club, IJsonSerializer serializer) { JsonObject container = LocationConverter.Convert(club, serializer); container.Add("Url", club.SiteUrl); container.Add("Cats", serializer.Serialize(club.Categories)); return(container); }
internal static IJsonType Convert(Shop shop, IJsonSerializer serializer) { JsonObject container = LocationConverter.Convert(shop, serializer); container.Add("Url", shop.SiteUrl); container.Add("Email", shop.Email); container.Add("Tel", shop.Telephone); container.Add("Fax", shop.Fax); container.Add("Cats", serializer.Serialize(shop.Categories)); return(container); }