toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ValidationMethod.email:
      return 'EMAIL';
    case ValidationMethod.dns:
      return 'DNS';
  }
}