code: private static TextDirection  parseTextDirection(String val)
     {
        switch (val)
        {
           case "ltr": return Style.TextDirection.LTR;
           case "rtl": return Style.TextDirection.RTL;
           default:    return null;
        }
     }
docs: Parse a text decoration keyword