fromName static method

String fromName(
  1. String name
)

Return the name of the enum

Implementation

static String fromName(String name) {
  var listValues = StatusTransactionEnum.values.where((e) => e.name == name);

  if (listValues.isEmpty) {
    return name;
  } else {
    return listValues.first.value;
  }
}