toRenewType method
Implementation
RenewType toRenewType() {
switch (this) {
case 'None':
return RenewType.none;
case 'Weekly':
return RenewType.weekly;
case 'Monthly':
return RenewType.monthly;
}
throw Exception('$this is not known in enum RenewType');
}