toLookupAttributeKey method
Implementation
LookupAttributeKey toLookupAttributeKey() {
switch (this) {
case 'EventId':
return LookupAttributeKey.eventId;
case 'EventName':
return LookupAttributeKey.eventName;
case 'ReadOnly':
return LookupAttributeKey.readOnly;
case 'Username':
return LookupAttributeKey.username;
case 'ResourceType':
return LookupAttributeKey.resourceType;
case 'ResourceName':
return LookupAttributeKey.resourceName;
case 'EventSource':
return LookupAttributeKey.eventSource;
case 'AccessKeyId':
return LookupAttributeKey.accessKeyId;
}
throw Exception('$this is not known in enum LookupAttributeKey');
}