toClusterField method
Implementation
ClusterField toClusterField() {
switch (this) {
case 'ATTACHMENTS':
return ClusterField.attachments;
case 'SETTINGS':
return ClusterField.settings;
case 'STATISTICS':
return ClusterField.statistics;
case 'TAGS':
return ClusterField.tags;
}
throw Exception('$this is not known in enum ClusterField');
}