gradientOrientationFromValue function
Implementation
GradientOrientation gradientOrientationFromValue(String value){
switch(value){
case "L_R": return GradientOrientation.L_R;
case "R_L": return GradientOrientation.R_L;
case "T_B": return GradientOrientation.T_B;
case "B_T": return GradientOrientation.B_T;
case "TL_BR": return GradientOrientation.TL_BR;
case "TR_BL": return GradientOrientation.TR_BL;
case "BL_TR": return GradientOrientation.BL_TR;
case "BR_TL": return GradientOrientation.BR_TL;
default: return GradientOrientation.L_R;
}
}