toRetentionType method
Implementation
RetentionType toRetentionType() {
switch (this) {
case 'Retain':
return RetentionType.retain;
case 'Delete':
return RetentionType.delete;
}
throw Exception('$this is not known in enum RetentionType');
}