membership property

Membership get membership

The membership status of the user. One of: join invite leave ban

Implementation

Membership get membership => Membership.values.firstWhere((e) {
      if (content['membership'] != null) {
        return e.toString() == 'Membership.${content['membership']}';
      }
      return false;
    }, orElse: () => Membership.join);