toMemberStatus method
Implementation
MemberStatus toMemberStatus() {
switch (this) {
case 'CREATING':
return MemberStatus.creating;
case 'AVAILABLE':
return MemberStatus.available;
case 'CREATE_FAILED':
return MemberStatus.createFailed;
case 'UPDATING':
return MemberStatus.updating;
case 'DELETING':
return MemberStatus.deleting;
case 'DELETED':
return MemberStatus.deleted;
}
throw Exception('$this is not known in enum MemberStatus');
}