# Affiliation.fromString constructor

Affiliation.fromString(

1. String value

)

## Implementation

    factory Affiliation.fromString(String value) {
      switch (value) {
        case 'owner':
          return Affiliation.owner;
        case 'admin':
          return Affiliation.admin;
        case 'member':
          return Affiliation.member;
        case 'outcast':
          return Affiliation.outcast;
        case 'none':
          return Affiliation.none;
        default:
          throw InvalidAffiliationException();
      }
    }