Example #1
0
        public JSONNode toJson()
        {
            var json = new JSONObject();

            json["inputType"]          = inputType.toJson();
            json["obscureText"]        = obscureText;
            json["autocorrect"]        = autocorrect;
            json["smartDashesType"]    = smartDashesType.ToString();
            json["smartQuotesType"]    = smartQuotesType.ToString();
            json["enableSuggestions"]  = enableSuggestions;
            json["actionLabel"]        = actionLabel;
            json["inputAction"]        = $"TextInputAction.{inputAction.ToString()}";
            json["unityTouchKeyboard"] = unityTouchKeyboard;
            json["textCapitalization"] = textCapitalization.ToString();
            json["keyboardAppearance"] = keyboardAppearance.ToString();
            return(json);
        }