toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ContactMethodStatus.pendingVerification:
      return 'PendingVerification';
    case ContactMethodStatus.valid:
      return 'Valid';
    case ContactMethodStatus.invalid:
      return 'Invalid';
  }
}