toAttribute method

Attribute toAttribute()

Implementation

Attribute toAttribute() {
  switch (this) {
    case 'DEFAULT':
      return Attribute.$default;
    case 'ALL':
      return Attribute.all;
  }
  throw Exception('$this is not known in enum Attribute');
}