static Element LoadRadio (JsonObject json, object data) { var caption = GetString (json, "caption"); var group = GetString (json, "group"); if (group != null) return new RadioElement (caption, group); else return new RadioElement (caption); }