public IReadOnlyCollection <KeySwitch> Translate(IText source)
        {
            var result = new List <KeySwitch>();
            var model  = JsonConvert.DeserializeObject <IEnumerable <KeySwitchModel> >(source.Value);

            foreach (var i in model)
            {
                var x = JsonModelToKeySwitchHelper.Translate(i);
                result.Add(x);
            }

            return(result);
        }
        public KeySwitch Translate(IText source)
        {
            var model = JsonConvert.DeserializeObject <KeySwitchModel>(source.Value);

            return(JsonModelToKeySwitchHelper.Translate(model));
        }