getChainByValue static method

CHAIN getChainByValue(
  1. String code
)

Implementation

static CHAIN getChainByValue(String code) {
  return CHAIN.values.firstWhere((e) => e.value == code);
}