typeFromString static method
Implementation
static SubscriptionType? typeFromString(String? typeString) {
switch (typeString) {
case 'none':
return SubscriptionType.NONE;
case 'to':
return SubscriptionType.TO;
case 'from':
return SubscriptionType.FROM;
case 'both':
return SubscriptionType.BOTH;
}
return null;
}