fromName static method
Implementation
static CryptoProposal fromName(String name) {
try {
return BipProposal.values.firstWhere((element) => element.name == name);
} on StateError {
return CipProposal.values.firstWhere(
(element) => element.name == name,
orElse: () => throw MessageException(
"Unable to locate a proposal with the given name.",
details: {"Name": name}),
);
}
}