Class: CreateAPIVersionGitLinkedCollectionsItem

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



35796
35797
35798
35799
35800
35801
# File 'lib/schemas.rb', line 35796

def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    file_path: d["filePath"],
  )
end

.from_json!(json) ⇒ Object



35803
35804
35805
# File 'lib/schemas.rb', line 35803

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

Instance Method Details

#to_dynamicObject



35807
35808
35809
35810
35811
# File 'lib/schemas.rb', line 35807

def to_dynamic
  {
    "filePath" => file_path,
  }
end

#to_json(options = nil) ⇒ Object



35813
35814
35815
# File 'lib/schemas.rb', line 35813

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