Method: Vapi::CreateTelnyxPhoneNumberDtoFallbackDestination.validate_raw
- Defined in:
- lib/vapi_server_sdk/types/create_telnyx_phone_number_dto_fallback_destination.rb
.validate_raw(obj:) ⇒ Void
Leveraged for Union-type generation, validate_raw attempts to parse the given
hash and check each fields type against the current object's property
definitions.
70 71 72 73 74 75 76 77 78 79 |
# File 'lib/vapi_server_sdk/types/create_telnyx_phone_number_dto_fallback_destination.rb', line 70 def self.validate_raw(obj:) case obj.type when "number" Vapi::TransferDestinationNumber.validate_raw(obj: obj) when "sip" Vapi::TransferDestinationSip.validate_raw(obj: obj) else raise("Passed value matched no type within the union, validation failed.") end end |