toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Protocol.http:
      return 'http';
    case Protocol.https:
      return 'https';
  }
}