parse static method

Rc parse(
  1. int? value
)

Implementation

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