fromWire static method

KeyFormat? fromWire(
  1. String? value
)

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;
  }
}