destructureSelf method
Implementation
void destructureSelf() {
final parts = this._api._destructureRsvpStatus(this._box.borrow());
switch (parts.tag) {
case 0:
this._tag = RsvpStatusTag.Yes;
break;
case 1:
this._tag = RsvpStatusTag.Maybe;
break;
case 2:
this._tag = RsvpStatusTag.No;
break;
default:
throw new StateError(
"Destructuring enum gave back an invalid tag: ${parts.tag}");
}
}