Class: GetApisAPIIDTasksTaskIDResponse403

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/schemas.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_dynamic!(d) ⇒ Object



5989
5990
5991
5992
5993
5994
5995
5996
# File 'lib/schemas.rb', line 5989

def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    detail:                                         d["detail"],
    title:                                          d["title"],
    get_apis_api_id_tasks_task_id_response403_type: d["type"],
  )
end

.from_json!(json) ⇒ Object



5998
5999
6000
# File 'lib/schemas.rb', line 5998

def self.from_json!(json)
  from_dynamic!(JSON.parse(json))
end

Instance Method Details

#to_dynamicObject



6002
6003
6004
6005
6006
6007
6008
# File 'lib/schemas.rb', line 6002

def to_dynamic
  {
    "detail" => detail,
    "title"  => title,
    "type"   => get_apis_api_id_tasks_task_id_response403_type,
  }
end

#to_json(options = nil) ⇒ Object



6010
6011
6012
# File 'lib/schemas.rb', line 6010

def to_json(options = nil)
  JSON.generate(to_dynamic, options)
end