discontinuedPackage aws_securityhub_api has been discontinued and replaced by aws_client.

toRecordState method

RecordState toRecordState()

Implementation

RecordState toRecordState() {
  switch (this) {
    case 'ACTIVE':
      return RecordState.active;
    case 'ARCHIVED':
      return RecordState.archived;
  }
  throw Exception('$this is not known in enum RecordState');
}