Method: Vapi::CreateInflectionAiCredentialDto.from_json
- Defined in:
- lib/vapi_server_sdk/types/create_inflection_ai_credential_dto.rb
.from_json(json_object:) ⇒ Vapi::CreateInflectionAiCredentialDto
Deserialize a JSON object to an instance of CreateInflectionAiCredentialDto
37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/vapi_server_sdk/types/create_inflection_ai_credential_dto.rb', line 37 def self.from_json(json_object:) struct = JSON.parse(json_object, object_class: OpenStruct) parsed_json = JSON.parse(json_object) api_key = parsed_json["apiKey"] name = parsed_json["name"] new( api_key: api_key, name: name, additional_properties: struct ) end |