toResourceRecordSetFailover method

ResourceRecordSetFailover toResourceRecordSetFailover()

Implementation

ResourceRecordSetFailover toResourceRecordSetFailover() {
  switch (this) {
    case 'PRIMARY':
      return ResourceRecordSetFailover.primary;
    case 'SECONDARY':
      return ResourceRecordSetFailover.secondary;
  }
  throw Exception('$this is not known in enum ResourceRecordSetFailover');
}