toGeoRestrictionType method
Implementation
GeoRestrictionType toGeoRestrictionType() {
switch (this) {
case 'blacklist':
return GeoRestrictionType.blacklist;
case 'whitelist':
return GeoRestrictionType.whitelist;
case 'none':
return GeoRestrictionType.none;
}
throw Exception('$this is not known in enum GeoRestrictionType');
}