toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ContactProtocol.email:
      return 'Email';
    case ContactProtocol.sms:
      return 'SMS';
  }
}