class Cucumber::Messages::GherkinDocument

def self.from_h(hash)

def self.from_h(hash)
  return nil if hash.nil?
  self.new(
    uri: hash[:uri],
    feature: Feature.from_h(hash[:feature]),
    comments: hash[:comments]&.map { |item| Comment.from_h(item) },
  )
end