withObject method

MethodReflection<O, R> withObject(
  1. O object
)

Returns a new instance that references object.

Implementation

MethodReflection<O, R> withObject(O object) => MethodReflection<O, R>._(
    classReflection,
    declaringType,
    name,
    returnType,
    returnNullable,
    methodAccessor,
    object,
    normalParameters,
    optionalParameters,
    namedParameters,
    annotations)
  .._allJsonParametersNames = _allJsonParametersNames
  .._allParameters = _allParameters
  .._allParametersNames = _allParametersNames
  .._hasJsonNameAlias = _hasJsonNameAlias
  .._namedParametersNames = _namedParametersNames
  .._normalParametersNames = _normalParametersNames
  .._normalParametersTypeReflection = _normalParametersTypeReflection
  .._normalParametersTypes = _normalParametersTypes
  .._optionalParametersNames = _optionalParametersNames
  .._optionalParametersTypeReflection = _optionalParametersTypeReflection
  .._optionalParametersTypes = _optionalParametersTypes
  .._positionalParametersNames = _positionalParametersNames;