fromVersion static method
Implementation
static EIP712Version fromVersion(int? version) {
return values.firstWhere((e) => e.version == version,
orElse: () => throw SolidityAbiException(
"Invalid EIP712Version version.",
details: {
"version": version,
"excepted": values.map((e) => e.version).join(", ")
}));
}