class Cucumber::Messages::Attachment

def self.from_h(hash)

def self.from_h(hash)
  return nil if hash.nil?
  self.new(
    body: hash[:body],
    content_encoding: hash[:contentEncoding],
    file_name: hash[:fileName],
    media_type: hash[:mediaType],
    source: Source.from_h(hash[:source]),
    test_case_started_id: hash[:testCaseStartedId],
    test_step_id: hash[:testStepId],
    url: hash[:url],
  )
end