Class: GetCollectionsResponseCollectionsItemFork
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetCollectionsResponseCollectionsItemFork
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
8961 8962 8963 8964 8965 8966 8967 8968 |
# File 'lib/schemas.rb', line 8961 def self.from_dynamic!(d) d = Types::Hash[d] new( created_at: d["createdAt"], from: d["from"], label: d["label"], ) end |
.from_json!(json) ⇒ Object
8970 8971 8972 |
# File 'lib/schemas.rb', line 8970 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
8974 8975 8976 8977 8978 8979 8980 |
# File 'lib/schemas.rb', line 8974 def to_dynamic { "createdAt" => created_at, "from" => from, "label" => label, } end |
#to_json(options = nil) ⇒ Object
8982 8983 8984 |
# File 'lib/schemas.rb', line 8982 def to_json( = nil) JSON.generate(to_dynamic, ) end |