toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case OriginProtocolPolicy.httpOnly:
      return 'http-only';
    case OriginProtocolPolicy.matchViewer:
      return 'match-viewer';
    case OriginProtocolPolicy.httpsOnly:
      return 'https-only';
  }
}