toResourceAttribute method

ResourceAttribute toResourceAttribute()

Implementation

ResourceAttribute toResourceAttribute() {
  switch (this) {
    case 'PROPERTIES':
      return ResourceAttribute.properties;
    case 'METADATA':
      return ResourceAttribute.metadata;
    case 'CREATIONPOLICY':
      return ResourceAttribute.creationpolicy;
    case 'UPDATEPOLICY':
      return ResourceAttribute.updatepolicy;
    case 'DELETIONPOLICY':
      return ResourceAttribute.deletionpolicy;
    case 'TAGS':
      return ResourceAttribute.tags;
  }
  throw Exception('$this is not known in enum ResourceAttribute');
}