module T::Props::Serializable::DecoratorMethods

def from_hash(hash, strict=false) # rubocop:disable Style/OptionalBooleanParameter (changing this API is unfortunately not feasible)

rubocop:disable Style/OptionalBooleanParameter (changing this API is unfortunately not feasible)
def from_hash(hash, strict=false) # rubocop:disable Style/OptionalBooleanParameter (changing this API is unfortunately not feasible)
  raise ArgumentError.new("#{hash.inspect} provided to from_hash") if !(hash && hash.is_a?(Hash))
  i = @class.allocate
  i.deserialize(hash, strict)
  i
end