toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case EnrollmentStatus.initialized:
      return 'INITIALIZED';
    case EnrollmentStatus.pending:
      return 'PENDING';
    case EnrollmentStatus.registered:
      return 'REGISTERED';
    case EnrollmentStatus.disassociating:
      return 'DISASSOCIATING';
    case EnrollmentStatus.deregistering:
      return 'DEREGISTERING';
  }
}