Parse method
Parses the specified value.
The value.
Implementation
@override
Object? Parse(String? value) {
switch (value) {
case NoMatch:
return TaskDelegationState.NoDelegation;
case OwnNew:
return TaskDelegationState.Unknown;
case Owned:
return TaskDelegationState.Accepted;
case Accepted:
return TaskDelegationState.Declined;
default:
EwsUtilities.Assert(
false,
"TaskDelegationStatePropertyDefinition.Parse",
"""string.Format("TaskDelegationStatePropertyDefinition.Parse(): value {0} cannot be handled.", value)""");
return null; // To keep the compiler happy
}
}