Class: GetApisAPIIDTagsResponse500

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



5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
# File 'lib/schemas.rb', line 5760

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

.from_json!(json) ⇒ Object



5771
5772
5773
# File 'lib/schemas.rb', line 5771

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

Instance Method Details

#to_dynamicObject



5775
5776
5777
5778
5779
5780
5781
5782
5783
# File 'lib/schemas.rb', line 5775

def to_dynamic
  {
    "detail"   => detail,
    "instance" => instance,
    "status"   => status,
    "title"    => title,
    "type"     => get_apis_api_id_tags_response500_type,
  }
end

#to_json(options = nil) ⇒ Object



5785
5786
5787
# File 'lib/schemas.rb', line 5785

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