Axis? parseAxis(String? string) { Axis? rst; Axis.values.forEach((element) { if (string == element.toJson()) { rst = element; } }); return rst; }