copyWith method

A copy with the given properties replaced; everything else, unknown keys included, is kept.

Implementation

CompleteRequestParams copyWith({
  RequestMetaObject? meta,
  CompleteRequestParamsArgument? argument,
  Map<String, Object?>? context,
  CompleteRequestParamsRef? ref,
}) =>
    CompleteRequestParams.fromJson({
      ...toJson(),
      if (meta != null) '_meta': $encode(meta),
      if (argument != null) 'argument': $encode(argument),
      if (context != null) 'context': $encode(context),
      if (ref != null) 'ref': $encode(ref),
    });