toMessageType method

MessageType toMessageType()

Implementation

MessageType toMessageType() {
  switch (this) {
    case 'RAW':
      return MessageType.raw;
    case 'DIGEST':
      return MessageType.digest;
  }
  throw Exception('$this is not known in enum MessageType');
}