toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case InvitationStatus.pending:
      return 'PENDING';
    case InvitationStatus.accepted:
      return 'ACCEPTED';
    case InvitationStatus.accepting:
      return 'ACCEPTING';
    case InvitationStatus.rejected:
      return 'REJECTED';
    case InvitationStatus.expired:
      return 'EXPIRED';
  }
}