fromWire static method
Parses a KeyFormat from its wire representation.
Implementation
static KeyFormat? fromWire(String? value) {
switch (value) {
case 'BASE64':
return KeyFormat.base64;
case 'PEM':
return KeyFormat.pem;
case 'RAW':
return KeyFormat.raw;
case 'HEX':
return KeyFormat.hex;
default:
return null;
}
}