static Rc parse(int? value) { for (Rc rc in Rc.values) { if (rc.index == value) { return rc; } } return Rc.success; }