class Cucumber::Messages::TestRunHookFinished

def self.from_h(hash)

#
Cucumber::Messages::TestRunHookFinished.from_h(some_hash) # => #

corresponding snake_cased attributes.
If the hash keys are camelCased, they are properly assigned to the
Returns a new TestRunHookFinished from the given hash.
#
def self.from_h(hash)
  return nil if hash.nil?
  new(
    test_run_hook_started_id: hash[:testRunHookStartedId],
    result: TestStepResult.from_h(hash[:result]),
    timestamp: Timestamp.from_h(hash[:timestamp])
  )
end