class Cucumber::Messages::ParameterType

def self.from_h(hash)

def self.from_h(hash)
  return nil if hash.nil?
  self.new(
    name: hash[:name],
    regular_expressions: hash[:regularExpressions],
    prefer_for_regular_expression_match: hash[:preferForRegularExpressionMatch],
    use_for_snippets: hash[:useForSnippets],
    id: hash[:id],
    source_reference: SourceReference.from_h(hash[:sourceReference]),
  )
end

def initialize(

def initialize(
  name: '',
  regular_expressions: [],
  prefer_for_regular_expression_match: false,
  use_for_snippets: false,
  id: '',
  source_reference: nil
)
  @name = name
  @regular_expressions = regular_expressions
  @prefer_for_regular_expression_match = prefer_for_regular_expression_match
  @use_for_snippets = use_for_snippets
  @id = id
  @source_reference = source_reference
end