class Cucumber::Messages::TestRunFinished

def self.from_h(hash)

def self.from_h(hash)
  return nil if hash.nil?
  self.new(
    message: hash[:message],
    success: hash[:success],
    timestamp: Timestamp.from_h(hash[:timestamp]),
    exception: Exception.from_h(hash[:exception]),
  )
end

def initialize(

def initialize(
  message: nil,
  success: false,
  timestamp: Timestamp.new,
  exception: nil
)
  @message = message
  @success = success
  @timestamp = timestamp
  @exception = exception
end