parseValidaFieldType function

ValidaFieldType parseValidaFieldType(
  1. String raw
)

Implementation

ValidaFieldType parseValidaFieldType(String raw) {
  for (final v in ValidaFieldType.values) {
    final str = v.toString();
    if (str == raw || str.split('.')[1] == raw) {
      return v;
    }
  }
  throw Error();
}