Private/Constants.psm1

#!/usr/bin/env pwsh
using namespace System

using module ./Enums.psm1

class EnumConstants {
  static [string] GetContentTypeString([TwilioContentType]$type) {
    $str = switch ("$type") {
      "JSON" { "application/json"; break }
      "SCIM" { "application/scim"; break }
      "FORM_URLENCODED" { "application/x-www-form-urlencoded"; break }
      default { "application/x-www-form-urlencoded" }
    }
    return  $str
  }
}